adb_swipe
Simulate swipe gestures between two screen coordinates or long-press by repeating a point with a longer duration, controlling Android devices over ADB.
Instructions
Swipe from one point to another. The same point twice, with a longer duration_ms, is a long press.
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 | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| device | No | serial, ip[:port] or saved alias; omit to use the default device | |
| duration_ms | No | default 300 |