long_press
Simulate a press-and-hold on an element or screen coordinates to open context menus or enter Home Screen edit mode. Use it when a tap is insufficient.
Instructions
Press and hold an element handle or "x,y" (context menus, Home Screen edit mode).
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": {
"target": "<target>"
},
"name": "long_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| hold_ms | No | ||
| max_wait_ms | No | ||
| observe_after | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |