Press Key
android_press_keySend key press events to Android devices via ADB, supporting all hardware and navigation keys like BACK, HOME, and VOLUME_UP.
Instructions
Press a hardware or navigation key. Common keys: BACK, HOME, ENTER, MENU, APP_SWITCH, POWER, VOLUME_UP, VOLUME_DOWN, DELETE, TAB, DPAD_UP/DOWN/LEFT/RIGHT/CENTER. Any Android KEYCODE_* name or numeric keycode also works.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name (e.g. 'BACK', 'KEYCODE_CAMERA') or numeric keycode | |
| device | No | Device id (serial or host:port). Optional -- when omitted, uses ANDROID_MCP_DEVICE env or auto-selects the connected device (physical devices preferred over emulators). |