ios_swipe
Simulate swipe gestures on iOS simulator screens for automated testing and interaction, requiring IDB installation for execution.
Instructions
Swipe gesture on an iOS simulator screen. Requires IDB to be installed (brew install idb-companion).
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": {
"startX": "<startX>",
"startY": "<startY>",
"endX": "<endX>",
"endY": "<endY>"
},
"name": "ios_swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| startX | Yes | Starting X coordinate in pixels | |
| startY | Yes | Starting Y coordinate in pixels | |
| endX | Yes | Ending X coordinate in pixels | |
| endY | Yes | Ending Y coordinate in pixels | |
| duration | No | Optional swipe duration in seconds | |
| delta | No | Optional delta between touch events (step size) | |
| udid | No | Optional simulator UDID. Uses booted simulator if not specified. |