long_press
Hold and release a touch at a specified on-screen target for a set duration to perform long-press gestures; anchor the target using a screenshot or element list first.
Instructions
Hold and release a touch at one target for the requested duration. Anchor the target to take_screenshot or list_elements before sending it.
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 | ||
| device_id | No | ||
| timeout_ms | No | ||
| duration_ms | No |