long_press
Performs a long press at specified screen coordinates on Android or iOS simulators to trigger context menus or extended interactions.
Instructions
Long press at specific screen coordinates
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 | X coordinate | |
| y | Yes | Y coordinate | |
| device_id | No | Target device ID. If omitted, uses the default device. | |
| duration_ms | No | Duration of the long press in milliseconds (default: 1000) |