Drag And Drop
android_dragPerform a drag gesture on an Android device from specified start to end coordinates. Useful for automated drag-and-drop interactions.
Instructions
Drag from one point and drop at another (uses a slow swipe that triggers drag behavior).
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. |