ui_swipe
Perform swipe gestures on an iOS Simulator by providing start and end coordinates, with options for duration and step size.
Instructions
[ios-simulator-mcp] Swipe on the screen in the iOS Simulator
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": {
"x_start": "<x_start>",
"y_start": "<y_start>",
"x_end": "<x_end>",
"y_end": "<y_end>"
},
"name": "ui_swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | No | Udid of target, can also be set with the IDB_UDID env var | |
| delta | No | The size of each step in the swipe (default is 1) | |
| x_end | Yes | The ending x-coordinate | |
| y_end | Yes | The ending y-coordinate | |
| x_start | Yes | The starting x-coordinate | |
| y_start | Yes | The starting y-coordinate | |
| duration | No | Swipe duration in seconds (e.g., 0.1) |