swipe
Drag one finger in a straight line between two screen points and release for precise gestures like row actions, sliders, and edge gestures. Verify the result with describe_ui or screenshot.
Instructions
Drag one finger in a straight line from one point to another (screen points), then release. Use it for precise gestures such as row actions, sliders or edge swipes; to scroll content use scroll, and to scroll until an element appears use tap_element with scrollDirection. A shorter duration makes a faster drag. Doesn't check the result; verify with describe_ui or screenshot.
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": {
"fromX": "<fromX>",
"fromY": "<fromY>",
"toX": "<toX>",
"toY": "<toY>"
},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toX | Yes | End, points from left | |
| toY | Yes | End, points from top | |
| fromX | Yes | Start, points from left | |
| fromY | Yes | Start, points from top | |
| device | No | Device UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device. | |
| duration | No | Seconds (default 0.3) |