key_event
Send Android key events remotely. Pass keycodes like HOME, BACK, ENTER, or VOLUME_UP to trigger device actions—no physical input required. Controls the connected device through ADB and scrcpy.
Instructions
Send a key event to the device. Supports keycodes like HOME, BACK, ENTER, VOLUME_UP, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Alias for keycode | |
| serial | No | Device serial number | |
| keycode | No | Keycode name (e.g., 'HOME', 'BACK') or numeric value |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Human-readable description of the action performed | |
| success | Yes | Whether the input action was dispatched to the device |