long_press
Press and hold at (x, y) for a set duration to open context menus, select text, or grab an icon before dragging.
Instructions
Long-presses at (x, y) for duration_ms (default 600). Opens context menus, selects text, or grabs an icon before dragging. For element targets with humanized random points use long_press_element.
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 | ||
| verify | No | 复查屏幕树确认变更生效 (default true). | |
| duration_ms | No | Hold duration in ms (default 600). | |
| verify_poll_ms | No | 轮询树的时间间隔毫秒 (default 300). | |
| verify_timeout_ms | No | 等待变更生效的超时毫秒 (default 3000). |