swipe
Perform swipe gestures on Android device screens for navigation and interaction automation by specifying start and end coordinates.
Instructions
Perform a swipe gesture on the screen
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": {
"start_x": "<start_x>",
"start_y": "<start_y>",
"end_x": "<end_x>",
"end_y": "<end_y>"
},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_x | Yes | Start X coordinate | |
| start_y | Yes | Start Y coordinate | |
| end_x | Yes | End X coordinate | |
| end_y | Yes | End Y coordinate | |
| duration_ms | No | Swipe duration in ms (default 300) | |
| device_id | No | Device ID (optional if only one device) |