Send key event
phone_keySend Android key events such as HOME, BACK, ENTER, or VOLUME_UP to automate device control over ADB and receive the resulting UI screen.
Instructions
Send an Android keyevent such as HOME, BACK, ENTER, TAB, DELETE, APP_SWITCH, POWER, VOLUME_UP, VOLUME_DOWN, DPAD_UP/DOWN/LEFT/RIGHT, PASTE. Returns the resulting screen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name or KEYCODE_* or numeric keycode | |
| observe | No | Re-dump the UI after the action (default true) | |
| settleMs | No | Wait before re-observing, milliseconds | |
| includeScreenshot | No | Include a PNG screenshot in the response |