key_event
Sends hardware key events, such as home, back, enter, volume, or raw keycodes, to an Android device via ADB for navigation and control.
Instructions
Send a hardware key: home, back, recent, enter, delete, wakeup, sleep, volume_up/down, power, tab, space, escape, or a raw keycode number.
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": "key_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Named key or numeric keycode |