key_press
Press Android system keys for UI testing and automation. Trigger back, home, volume, and navigation actions on a connected device.
Instructions
Press an allowlisted Android testing key.
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": "key_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| allow_power | No | ||
| verify_change | No |