press_key
Simulate pressing hardware or software keys on Android devices to automate navigation, volume control, power management, and menu access during testing or automation workflows.
Instructions
Press a hardware/software 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": "press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key to press | |
| device_id | No | Device ID (optional if only one device) |