long_press
Simulates a long press at specified screen coordinates to trigger context menus or drag handles during Android UI automation.
Instructions
Long-press a coordinate (context menus, drag handles).
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 | |
| y | Yes | y | |
| duration_ms | No | default 800 |