swipe
Perform swipe or drag gestures on an Android device using start and end coordinates for UI automation and navigation.
Instructions
Swipe/drag from (sx, sy) to (ex, ey). Get the screen size from get_device_info to compute coordinates.
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": {
"sx": "<sx>",
"sy": "<sy>",
"ex": "<ex>",
"ey": "<ey>"
},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ex | Yes | ||
| ey | Yes | ||
| sx | Yes | ||
| sy | Yes | ||
| duration | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |