long_press
Simulate a long press at specified screen coordinates. Hold the press for a set duration in milliseconds to trigger context menus or extended interactions.
Instructions
Long press at specific screen coordinates.
Args: x: X coordinate y: Y coordinate duration_ms: Press duration in milliseconds (default: 1000)
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": {
"x": "<x>",
"y": "<y>"
},
"name": "long_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| duration_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |