Drag And Drop
android_dragDrag from one point to another on an Android device with a slow swipe that triggers drag behavior, letting you move items or interact with draggable UI elements.
Instructions
Drag from one point and drop at another (uses a slow swipe that triggers drag behavior).
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": {
"fromX": "<fromX>",
"fromY": "<fromY>",
"toX": "<toX>",
"toY": "<toY>"
},
"name": "android_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toX | Yes | End X coordinate | |
| toY | Yes | End Y coordinate | |
| fromX | Yes | Start X coordinate | |
| fromY | Yes | Start Y coordinate | |
| device | No | Device id (serial or host:port). Optional -- when omitted, uses ANDROID_MCP_DEVICE env or auto-selects the connected device (physical devices preferred over emulators). | |
| duration | No | Drag duration in milliseconds. Defaults to 1500. |