Drag on Android display
mobile_input_dragSimulate a long-press drag-and-drop on a selected Android logical display using coordinates or UI refs from the latest snapshot.
Instructions
Inject a capability-gated long-press drag-and-drop on one logical display. startRef and endRef come from the latest UI read and win over start and end.
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": {
"serial": "<serial>",
"displayId": "<displayId>"
},
"name": "mobile_input_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| start | No | ||
| endRef | No | Ref from the latest mobile_ui_snapshot, mobile_ui_find, or mobile_ui_wait on this serial and display. | |
| serial | Yes | Exact ADB serial from mobile_devices_list; never inferred when multiple devices exist | |
| startRef | No | Ref from the latest mobile_ui_snapshot, mobile_ui_find, or mobile_ui_wait on this serial and display. | |
| displayId | Yes | Android framework logical display ID, not a SurfaceFlinger physical ID | |
| durationMs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| device | Yes | ||
| backend | Yes | ||
| display | No | ||
| warnings | Yes | ||
| durationMs | Yes | ||
| operationId | Yes | ||
| schemaVersion | Yes |