swipe
Perform a directional drag gesture on an iOS simulator using start/end coordinates or a direction, with configurable duration for UI navigation and testing.
Instructions
Perform a swipe gesture.
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": {
"device_id": "<device_id>"
},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_x | No | Ending X coordinate | |
| to_y | No | Ending Y coordinate | |
| from_x | No | Starting X coordinate | |
| from_y | No | Starting Y coordinate | |
| device_id | Yes | Simulator UDID | |
| direction | No | Swipe direction | |
| duration_ms | No | Duration in milliseconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |