long_press
Simulates a long press at specified Android screen coordinates for a set duration, enabling touch-and-hold interactions over ADB.
Instructions
Long-press at 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 | ||
| y | Yes | ||
| ms | No | ||
| serial | No | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |