swipe
Perform precise swipes on iOS simulators by defining exact coordinates and timing parameters. Use describe_ui for accuracy and avoid guessing from screenshots. Integrates with XcodeBuildMCP for streamlined testing.
Instructions
Swipe from one point to another. Use describe_ui for precise coordinates (don't guess from screenshots). Supports configurable timing.
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": {
"simulatorUuid": "<simulatorUuid>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delta | No | ||
| duration | No | ||
| postDelay | No | ||
| preDelay | No | ||
| simulatorUuid | Yes | ||
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes |