long_press
Simulate a long press at specified screen coordinates to trigger context menus, drag actions, or selection on Android devices.
Instructions
Perform a long press at the specified coordinates
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 coordinate | |
| y | Yes | Y coordinate | |
| serial | No | Device serial number | |
| duration | No | Duration in milliseconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Human-readable description of the action performed | |
| success | Yes | Whether the input action was dispatched to the device |