swipe
Simulate touchscreen swipes on iOS virtual machines by specifying start and end coordinates with duration control for testing and automation.
Instructions
Swipe from one point to another.
Coordinates are in pixels matching the screenshot dimensions (1290x2796).
Args: x1: Start X coordinate y1: Start Y coordinate x2: End X coordinate y2: End Y coordinate duration_ms: Swipe duration in milliseconds (default 300)
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": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| y1 | Yes | ||
| x2 | Yes | ||
| y2 | Yes | ||
| duration_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |