press_key
Press hardware or system keys such as Home, Back, Enter, Power, or volume on a running Android or iOS device to navigate and control it.
Instructions
Press a hardware or system key on a running device. Android keys: home, back, enter, tab, delete, power, volume_up, volume_down, menu, app_switch. iOS keys: home, lock, volume_up, volume_down, siri.
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": {
"platform": "<platform>",
"device": "<device>",
"key": "<key>"
},
"name": "press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name (e.g. home, back, enter, volume_up) | |
| device | Yes | Device ID or name | |
| platform | Yes | Target platform |