long_press
Simulate a long press gesture at given coordinates on an Android device, with adjustable duration and support for multiple devices.
Instructions
Long press at (x,y)
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 |
|---|---|---|---|
| serial | No | Device serial (optional; required when multiple devices connected) | |
| x | Yes | X coordinate | |
| y | Yes | Y coordinate | |
| duration | No | Duration in ms (default 1000) |