drag_drop
Perform a drag and drop gesture on an Android device by specifying start and end coordinates, with configurable duration for precise control of touch-based interactions.
Instructions
Perform a drag and drop gesture from one point to another. Uses input draganddrop on Android 8.0+ (API 26), falls back to swipe on older versions.
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": "drag_drop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endX | Yes | End X coordinate | |
| endY | Yes | End Y coordinate | |
| serial | No | Device serial number | |
| startX | Yes | Start X coordinate | |
| startY | Yes | Start Y coordinate | |
| duration | No | Duration in milliseconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Human-readable description of the action performed | |
| success | Yes | Whether the input action was dispatched to the device |