swipe
Simulate a touch-and-drag or scroll gesture between two coordinates on Android devices to navigate screens, move lists, or perform drag actions via ADB.
Instructions
Swipe/scroll between two points.
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 |
|---|---|---|---|
| x1 | Yes | start x | |
| x2 | Yes | end x | |
| y1 | Yes | start y | |
| y2 | Yes | end y | |
| duration_ms | No | Gesture duration, default 300 (>=800 = drag) |