press_button
Press hardware or navigation buttons (HOME, BACK, POWER, VOLUME) on an Android emulator to simulate key presses and control device actions.
Instructions
Press a hardware/navigation button (HOME, BACK, MENU, APP_SWITCH, POWER, VOLUME_UP, VOLUME_DOWN, ENTER, DEL, TAB, CAMERA, SEARCH)
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": {
"button": "<button>"
},
"name": "press_button"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | Yes | ||
| serial | No | Device serial (e.g. emulator-5554). Optional when exactly one device is connected. |