ui_swipe
Perform a swipe gesture between two specified coordinates on the iOS simulator. Use ui_snapshot to capture coordinates for targeted interactions.
Instructions
Swipe between two points on the simulator screen. Use ui_snapshot to get coordinates, then swipe between them. For common gestures like scrolling, prefer ui_gesture instead.
Requires AXe CLI: brew tap cameroncooke/axe && brew install axe
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": {
"start_x": "<start_x>",
"start_y": "<start_y>",
"end_x": "<end_x>",
"end_y": "<end_y>"
},
"name": "ui_swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device UDID, name, or 'booted' | booted |
| start_x | Yes | Start X coordinate | |
| start_y | Yes | Start Y coordinate | |
| end_x | Yes | End X coordinate | |
| end_y | Yes | End Y coordinate | |
| duration | No | Swipe duration in seconds |