# simulator_slider

> The MCP tool that sets a standard slider on the Team's Simulator to a percentage and reads the value back.

Source: https://air.build/docs/mcp-tools/simulator_slider/

`simulator_slider` moves a slider on the Team's running Simulator to `percent` of its track and then reads the slider's value again to check it landed. The value must end up within 3 percentage points; it moves the slider up to four times to get there. The slider is named by a [selector](https://air.build/docs/mcp-tools/simulator_find/#selector), never by coordinates. The tool always looks for role `AXSlider` and is always strict, so the selector must match exactly one slider. It waits up to 10 seconds for one. It works only on a standard left-to-right iOS slider whose accessibility value is either a fraction from 0 to 1 or a percentage. Custom ranges and vertical sliders are refused. For those, use [simulator_adjust](https://air.build/docs/mcp-tools/simulator_adjust/) or [simulator_drag](https://air.build/docs/mcp-tools/simulator_drag/). Setting the same percent again is harmless. When the check fails, the slider may already have moved.

| Read-only | Destructive | Idempotent |
| --- | --- | --- |
| No | No | Yes |

## Inputs

| Input | Type | Required | Default | What it does |
| --- | --- | --- | --- | --- |
| `teamId` | string (UUID) | Yes | — | The Team, from [list_teams](https://air.build/docs/mcp-tools/list_teams/) |
| `simulator` | string | No | The Team's default device | Which device, by `id` from [list_simulators](https://air.build/docs/mcp-tools/list_simulators/#result) |
| `text`, `id`, `value`, `role`, `nodeId`, `exact`, `strict` | see [Selectors](https://air.build/docs/mcp-tools/simulator_find/#selector) | At least one of the first five | — | The slider. `role` may only be `AXSlider`; `strict` is always on |
| `percent` | number, 0 to 100 | Yes | — | Where to put the slider: 0 is the left end, 100 the right end |

## Result

| Field | What |
| --- | --- |
| `element` | The slider, as read after the move. Its `value` is the value it now has. Other fields are as in [simulator_find](https://air.build/docs/mcp-tools/simulator_find/#result) |
| `point` | `x`, `y`: the slider's tap point |
| `exact` | Whether its text equals the query |
| `matchCount` | `1` |
| `excluded` | Sliders that matched but were left out, with `reason` |

```json
{
  "element": { "label": "Volume", "value": "0.75", "identifier": "volume", "role": "AXSlider",
               "frame": { "x": 16, "y": 400, "width": 370, "height": 44 }, "enabled": true, "interactive": true, "adjustable": true },
  "point": { "x": 201, "y": 422 },
  "exact": true,
  "matchCount": 1,
  "excluded": []
}
```

## Errors

| Message | When | What to do |
| --- | --- | --- |
| percent is required. | `percent` is missing | Send 0 to 100 |
| percent must be a number from 0 to 100. | `percent` is out of range | Send 0 to 100 |
| slider selector role must be AXSlider | `role` names another role | Leave `role` out or send `AXSlider` |
| slider is disabled | The slider is dimmed | Enable it in the app first |
| slider has no accessible percentage value | The slider does not report a value | Use [simulator_drag](https://air.build/docs/mcp-tools/simulator_drag/) |
| slider value is not normalized 0..1; custom ranges are unsupported | The slider reports a value on its own scale | Use [simulator_adjust](https://air.build/docs/mcp-tools/simulator_adjust/) |
| no supported horizontal slider track | The slider is not a standard horizontal one | Use [simulator_drag](https://air.build/docs/mcp-tools/simulator_drag/) |
| slider track is off-screen | Part of the track is off screen | Bring it into view with [simulator_scroll_to](https://air.build/docs/mcp-tools/simulator_scroll_to/) |
| slider verification failed: requested _p_%, observed _q_% | After four moves the value is still more than 3 points away | Read it with [simulator_find](https://air.build/docs/mcp-tools/simulator_find/); try again or use `simulator_adjust` |
| ambiguous selector _selector_: _n_ usable matches; add an id, role, or value filter | Several sliders match | Name it by `id` or `nodeId` |
| no usable element matching _selector_ within 10s | No slider matched within 10 seconds | Check with [simulator_find](https://air.build/docs/mcp-tools/simulator_find/) |

Plus the other [selector errors](https://air.build/docs/mcp-tools/simulator_find/#selector), and the errors every Simulator tool can return: see [start_simulator](https://air.build/docs/mcp-tools/start_simulator/#device-errors).

## Example

```json
{"name": "simulator_slider", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "id": "volume", "percent": 75}}
```
