press_key
Press system keys on Android devices for back, home, recent, menu, enter, power, and volume. Simulates hardware key presses remotely via ADB.
Instructions
Press a system key: back, home, recent, menu, enter, power, volume_up, volume_down, clear.
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": {
"key": "<key>"
},
"name": "press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | one of the supported key names (e.g. "back"). | |
| device | No | ADB serial; omit with a single connected device. | |
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||