Swipe on Screen
adb_swipeExecute a swipe gesture on an Android device from start coordinates (x1,y1) to end coordinates (x2,y2), with adjustable swipe duration (in ms).
Instructions
Swipe from (x1,y1) to (x2,y2) with optional duration (ms).
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": "adb_swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start X coordinate | |
| y1 | Yes | Start Y coordinate | |
| x2 | Yes | End X coordinate | |
| y2 | Yes | End Y coordinate | |
| duration | No | Swipe duration in ms (default: 300) |