swipe
Simulate a drag gesture on a running Android or iOS device using normalized screen coordinates from 0.0 to 1.0 and an optional duration.
Instructions
Swipe on a running device. Coordinates are ratios from 0.0 to 1.0 relative to the screen (0,0 = top-left, 1,1 = bottom-right).
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": {
"platform": "<platform>",
"device": "<device>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "swipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start X ratio (0.0 = left, 1.0 = right) | |
| x2 | Yes | End X ratio | |
| y1 | Yes | Start Y ratio (0.0 = top, 1.0 = bottom) | |
| y2 | Yes | End Y ratio | |
| device | Yes | Device ID or name | |
| platform | Yes | Target platform | |
| duration_ms | No | Swipe duration in milliseconds |