Long-press Android display
mobile_input_long_pressHolds a touch on a specific Android display point to trigger long-press actions; target by UI element ref or x/y coordinates.
Instructions
Hold a display-targeted touch at one point by swiping from that point to itself. Pass ref or x and y.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| ref | No | Ref from the latest mobile_ui_snapshot, mobile_ui_find, or mobile_ui_wait on this serial and display. Wins over x and y. | |
| serial | Yes | Exact ADB serial from mobile_devices_list; never inferred when multiple devices exist | |
| 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 |