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.
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 |