key_event
Send key events to an Android device, such as HOME, BACK, or VOLUME_UP, using keycode names or numeric values.
Instructions
Send a key event to the device. Supports keycodes like HOME, BACK, ENTER, VOLUME_UP, etc.
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": {
"keycode": "<keycode>"
},
"name": "key_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keycode | Yes | Keycode name (e.g., 'HOME', 'BACK') or numeric value | |
| serial | No | Device serial number |