adb_long_press
Perform a long press at specified screen coordinates on an Android device via ADB, with optional duration and device targeting.
Instructions
Long press on the screen 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": "adb_long_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate | |
| y | Yes | Y coordinate | |
| deviceId | No | Target device ID (optional) | |
| durationMs | No | Duration in milliseconds (default 1000) |