android_swipe
Swipe or scroll an Android device by direction or explicit coordinates. Adjust gesture duration, select device, and capture a screenshot of the result.
Instructions
Swipe or scroll, either by direction or by explicit coordinates.
Args: direction: One of up, down, left, right - a scroll gesture sized to the screen. "down" scrolls content downward (finger moves up). x1, y1, x2, y2: Explicit start/end points, used when direction is omitted. duration_ms: Gesture duration; longer is gentler. device: Device serial; defaults to the first physical device. screenshot: Return a screenshot of the result. scale: Long-edge px for that screenshot.
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": "android_swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | No | ||
| x2 | No | ||
| y1 | No | ||
| y2 | No | ||
| scale | No | ||
| device | No | ||
| direction | No | ||
| screenshot | No | ||
| duration_ms | No |