Press a key combination
keyPresses keyboard chords or individual keystrokes (e.g., 'ctrl+alt+Return') in a nested display, using xdotool names for X11 and xkb keysyms for Wayland.
Instructions
Presses a key or chord, e.g. 'Return', 'ctrl+alt+Return', 'shift+Tab', 'F10'. Uses xdotool names for X11 targets and xkb keysyms for Wayland targets.
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": {
"combo": "<combo>"
},
"name": "key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Display id from display_open. Optional when exactly one display is open. | |
| combo | Yes | ||
| hold_ms | No | How long to hold the chord; polling UIs miss taps between frames. | |
| window_id | No |