swipe
Drag a finger in a straight line between screen coordinates to perform gestures that scrolling cannot cover, such as moving sliders, flicking cards aside, pull-to-refresh, or panning maps.
Instructions
Drag a finger in a straight line from (x1, y1) to (x2, y2), in screen pixels. Use it for gestures scroll doesn't cover: moving a slider, swiping a card or a message aside, pulling down to refresh, dragging on a map. A very short swipe counts as a tap. Returns "Swiped"; call read_screen to see the result.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start X in screen pixels | |
| x2 | Yes | End X in screen pixels | |
| y1 | Yes | Start Y in screen pixels | |
| y2 | Yes | End Y in screen pixels | |
| duration_ms | No | How long the drag takes, 50 to 3000 ms (default 300); slower is more like dragging, faster like flinging |