keyevent
Send key events to Android devices through Airtest, enabling automated control of hardware keys like volume, power, or home.
Instructions
Send an Airtest key event, primarily for Android.
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": {
"device": "<device>",
"key": "<key>"
},
"name": "keyevent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| device | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||