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.
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": {
"device_id": "<device_id>",
"x": "<x>",
"y": "<y>"
},
"name": "long_press"
}
}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 |