android_swipe
Simulate touch gestures on Android devices by swiping between specified screen coordinates for automated testing and interaction.
Instructions
Swipe from one point to another on an Android device/emulator screen
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 in pixels | |
| startY | Yes | Starting Y coordinate in pixels | |
| endX | Yes | Ending X coordinate in pixels | |
| endY | Yes | Ending Y coordinate in pixels | |
| durationMs | No | Swipe duration in milliseconds (default: 300) | |
| deviceId | No | Optional device ID. Uses first available device if not specified. |