swipe
Simulate a touch drag gesture on an Android device from one screen coordinate to another over a specified duration for navigation and app interaction via ADB.
Instructions
Swipe from (x1,y1) to (x2,y2) over ms milliseconds
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 |
|---|---|---|---|
| ms | No | ||
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| serial | No | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |