MCP tools

The MCP tool that drags one finger along a line on the Team's Simulator's screen and lets go without a fling.

simulator_drag puts one finger down on the Team’s running Simulator, moves it along a straight line in steps even moves over duration seconds, holds it still for a moment and lifts it, so nothing flings. Use it to reorder a list, pull a sheet or move a custom control. It takes screen coordinates only, and both ends must be on screen. For a flick use simulator_swipe. It runs as a one-step simulator_batch, which is why its result has that shape.

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 stops, across
endY number, -1000000 to 1000000 Yes — Where it stops, down
duration number, 0.05 to 60 No 0.6 Seconds the move takes
steps integer, 2 to 1000 No 30 How many moves the line is cut into

Result

Field What
ok true when the drag was made, false when it failed
results One entry, for the drag
failedStep 0 when it failed
{ "ok": true, "results": [ { "ok": true } ] }

Errors

Message When What to do
startX is required. A coordinate is missing (likewise startY, endX, endY) Send all four
duration must be a number from 0.05 to 60. duration out of range Send 0.05 to 60
drag endpoints are off-screen An end is outside the screen Use points inside the screen
drag requires finite coordinates, duration 0.05..=60 seconds and steps 2..=1000 steps is under 2 or over 1000 Send 2 to 1000

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

Example

{"name": "simulator_drag", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "startX": 360, "startY": 300, "endX": 360, "endY": 520, "duration": 1}}