input_keyevent
Simulate key events on a connected Android device by providing a keycode. Use this to trigger actions such as pressing Home, Back, or Volume without manual interaction.
Instructions
Simulates a key event with the specified keycode on the connected Android device. Requires the keycode parameter, which is the keycode of the key to simulate.
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": "input_keyevent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keycode | Yes |