Swipe
swipeSimulate a touch gesture from one Android screen point to another, using device pixels or screenshot dimensions to map coordinates accurately.
Instructions
Swipe from one point to another: in device pixel coordinates, or, with
image_width and image_height, in the pixels of a screenshot of that size.
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 |
|---|---|---|---|
| ms | No | ||
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| device | No | ||
| image_width | No | ||
| image_height | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||