long_press
Press and hold at specified screen coordinates to open context menus, activate drag handles, or trigger selection in Android apps controlled by the AI agent.
Instructions
Press and hold (context menus, drag handles, selection).
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 in screenshot space | |
| y | Yes | y in screenshot space | |
| duration_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |