swipe_screen
Perform a swipe gesture on an Android screen from start coordinates to end coordinates. Set an optional duration in milliseconds to control the gesture speed.
Instructions
在屏幕上执行滑动操作,从起点滑动到终点。
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_screen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | 滑动起点的 x 坐标。 | |
| x2 | Yes | 滑动终点的 x 坐标。 | |
| y1 | Yes | 滑动起点的 y 坐标。 | |
| y2 | Yes | 滑动终点的 y 坐标。 | |
| duration_ms | No | 滑动持续时间(毫秒),默认 300ms。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |