pressKey
Press hardware keys on mobile devices for automation testing. Simulate actions like home, back, menu, power, and volume controls on Android and iOS platforms.
Instructions
Press a hardware key on the device (Maestro equivalent of pressButton)
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>",
"platform": "<platform>"
},
"name": "pressKey"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key to press | |
| platform | Yes | Platform of the device |