Long press
longPressHold down at specific screen coordinates to perform a long-press gesture on an Android device or emulator. Optionally set duration and target a device by serial.
Instructions
Press and hold on screen 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": "longPress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| serial | No | ||
| duration | No |