Long Press
long_pressSimulate a touch-and-hold gesture at specified screen coordinates to open context menus, start drag-and-drop, or trigger secondary actions on a mobile device.
Instructions
Perform a long press (touch and hold) at the given (x, y) screen coordinates. Commonly used to open context menus, start drag operations, or trigger secondary actions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | Device serial ID | |
| x | Yes | X coordinate in pixels | |
| y | Yes | Y coordinate in pixels | |
| duration | No | Duration of the long press in milliseconds |