adb_key
Sends Android key events such as Back, Home, or Enter to a connected device, enabling navigation and UI control during automation.
Instructions
Send a keyevent to the Android device (e.g. KEYCODE_BACK, KEYCODE_HOME, KEYCODE_ENTER)
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": "adb_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial (optional) | |
| keycode | Yes | Keycode name or integer |