press_key
Simulate hardware key presses on a connected Android device to control navigation, power, and volume. Send specific keys like home, back, or enter to automate device interactions.
Instructions
Press a hardware key: home, back, enter, menu, power, volume_up, volume_down, recent, wake, sleep, tab, delete, search, notifications. Raw KEYCODE_* names are also accepted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| device | No | Device serial from list_devices (omit when exactly one device is connected). |