Input key combo
input_key_comboPress several keys together as a chord on Android 11+ devices, using named presets like copy or paste or explicit key lists such as ctrl+a. Use it for shortcuts requiring simultaneous keypresses.
Instructions
Press several keys together as a chord (input keycombination, Android 11+). Use preset="select_all" (or copy/paste/cut/undo/redo/save/find) for a named shortcut, or keys=["ctrl","a"] / ["alt","tab"] to spell one out — modifier(s) first, then the action key; each is a key name (ctrl/alt/shift/meta, a-z, enter, tab, ...) or a raw keycode. For a single key use press_key instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "input_key_combo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Keys to press together, modifier(s) first, e.g. ["ctrl","a"] or ["alt","tab"]. Each is a key name (ctrl, alt, shift, meta, a-z, enter, tab, ...) or a raw keycode number. Needs at least 2. Omit if preset is given. | |
| preset | No | Named combo shortcut (select_all, copy, paste, cut, undo, redo, save, find) that expands to the right chord — use this instead of keys when a name will do. | |
| serial | No | Target device serial (adb -s). Optional when exactly one device is attached. |