android_swipe
Execute swipe gestures on Android devices by specifying start and end coordinates, enabling touch simulation for testing and automation purposes.
Instructions
Perform a swipe gesture between two 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": {
"startX": "<startX>",
"startY": "<startY>",
"endX": "<endX>",
"endY": "<endY>"
},
"name": "android_swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| startX | Yes | Starting X coordinate | |
| startY | Yes | Starting Y coordinate | |
| endX | Yes | Ending X coordinate | |
| endY | Yes | Ending Y coordinate | |
| duration | No | Swipe duration in milliseconds (default: 300) | |
| deviceSerial | No | Specific device serial number to target (optional) |