pt_swipe
Simulate a swipe gesture on an iOS simulator to scroll, dismiss, or navigate between screens.
Instructions
Swipe from one point to another on the screen. Use for scrolling, dismissing, or navigating between screens.
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": "pt_swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | No | Simulator UDID (uses active device if not specified) | |
| x_end | Yes | Ending x coordinate | |
| y_end | Yes | Ending y coordinate | |
| x_start | Yes | Starting x coordinate | |
| y_start | Yes | Starting y coordinate | |
| duration | No | Swipe duration in seconds (slower = more controlled) |