Swipe
swipeSimulate a touch gesture from (x1,y1) to (x2,y2) over a set duration to scroll, drag, or navigate mobile screens in agent-driven device control.
Instructions
Swipe from (x1, y1) to (x2, y2) over duration_ms / ms (default 300). mobilerun agent form: coordinate=[x, y], coordinate2=[x, y], duration in seconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | ||
| x1 | No | ||
| x2 | No | ||
| y1 | No | ||
| y2 | No | ||
| device | No | ||
| duration | No | ||
| coordinate | No | ||
| coordinate2 | No | ||
| duration_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||