simulator_slider
The MCP tool that sets a standard slider on the Team's Simulator to a percentage and reads the value back.
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, 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 or 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 |
simulator |
string | No | The Team’s default device | Which device, by id from list_simulators |
text, id, value, role, nodeId, exact, strict |
see Selectors | 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 |
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 |
{
"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 |
| slider value is not normalized 0..1; custom ranges are unsupported | The slider reports a value on its own scale | Use simulator_adjust |
| no supported horizontal slider track | The slider is not a standard horizontal one | Use simulator_drag |
| slider track is off-screen | Part of the track is off screen | Bring it into view with 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; 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 |
Plus the other selector errors, and the errors every Simulator tool can return: see start_simulator.
Example
{"name": "simulator_slider", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "id": "volume", "percent": 75}}