previewapk_press_key
Send Android keycodes to a device to press Back, Home, Recents, Enter, or Delete for automated UI navigation and testing.
Instructions
Send an Android keycode: 4=Back, 3=Home, 187=Recents, 66=Enter, 67=Delete.
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": "previewapk_press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| keycode | Yes |