swipe_screen
Perform swipe or drag gestures on Android devices by providing start and end coordinates. Optionally set duration to control gesture speed.
Instructions
Swipe from starting coordinates to ending coordinates, with an optional duration parameter to simulate drag actions.
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_screen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Starting X coordinate (pixels) | |
| x2 | Yes | Ending X coordinate (pixels) | |
| y1 | Yes | Starting Y coordinate (pixels) | |
| y2 | Yes | Ending Y coordinate (pixels) | |
| serial | No | Specific device serial number | |
| duration | No | Swipe gesture duration in milliseconds (optional, e.g. 500) |