MCP tools

The MCP tool that swipes (flicks) across the Team's Simulator's screen from one point to another.

simulator_swipe swipes one finger across the Team’s running Simulator from one point to another, in screen coordinates, like a flick: a list keeps moving after the finger lifts. It takes coordinates only, not elements. For a controlled move that does not fling (reordering, pulling a sheet, a custom slider) use simulator_drag; to bring an element into view use simulator_scroll_to.

Read-only Destructive Idempotent
No No No

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
startX number, -1000000 to 1000000 Yes — Where the finger lands, across
startY number, -1000000 to 1000000 Yes — Where the finger lands, down
endX number, -1000000 to 1000000 Yes — Where it lifts, across
endY number, -1000000 to 1000000 Yes — Where it lifts, down
duration number, 0 to 60 No The device’s own speed Seconds the swipe takes; longer is slower
display string No The display in use On a foldable: the display’s screenId from simulator_displays

Result

Field What
ok true
{ "ok": true }

Errors

Message When What to do
startX is required. A coordinate is missing (likewise startY, endX, endY) Send all four
startX must be a number from -1000000 to 1000000. A coordinate is not a number or out of range Send a number

Plus the errors every Simulator tool can return: see start_simulator.

Example

{"name": "simulator_swipe", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "startX": 200, "startY": 700, "endX": 200, "endY": 200}}