press-key-code
Press Android key codes to simulate hardware button interactions during mobile app automation testing with Appium.
Instructions
Press an Android key code
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": {
"keycode": "<keycode>"
},
"name": "press-key-code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keycode | Yes | Android keycode to press |