Send key event
phone_keySend Android key events such as HOME, BACK, ENTER, or VOLUME_UP to automate device control over ADB and receive the resulting UI screen.
Instructions
Send an Android keyevent such as HOME, BACK, ENTER, TAB, DELETE, APP_SWITCH, POWER, VOLUME_UP, VOLUME_DOWN, DPAD_UP/DOWN/LEFT/RIGHT, PASTE. Returns the resulting screen.
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": {
"key": "<key>"
},
"name": "phone_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name or KEYCODE_* or numeric keycode | |
| observe | No | Re-dump the UI after the action (default true) | |
| settleMs | No | Wait before re-observing, milliseconds | |
| includeScreenshot | No | Include a PNG screenshot in the response |