Send Android key
mobile_input_keySend symbolic or numeric Android key events to a chosen device display over ADB, supporting gamepad source and press, long-press, or double-tap actions.
Instructions
Send symbolic or numeric Android keys with gamepad source and capability-gated press options.
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": {
"serial": "<serial>",
"displayId": "<displayId>",
"key": "<key>"
},
"name": "mobile_input_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| action | No | press | |
| serial | Yes | Exact ADB serial from mobile_devices_list; never inferred when multiple devices exist | |
| source | No | gamepad | |
| displayId | Yes | Android framework logical display ID, not a SurfaceFlinger physical ID | |
| durationMs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| device | Yes | ||
| backend | Yes | ||
| display | No | ||
| warnings | Yes | ||
| durationMs | Yes | ||
| operationId | Yes | ||
| schemaVersion | Yes |