Keyboard shortcut
keyboardUse this when the task calls for shortcuts and individual key presses such as Ctrl/Cmd+C, Tab, Enter or Escape. Do not use it to enter normal prose when type_text is available. On Wayland auto uses an already-authorized portal; backend=portal explicitly requests consent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Optional target application/process name substring. | |
| key | No | Single key name such as Enter, Escape, Tab or A. | |
| pid | No | Optional target process id. | |
| keys | No | Ordered key names that together form the requested shortcut or key sequence. | |
| title | No | Optional target window title substring. | |
| device | Yes | ReMCP device id returned by list_devices. Required for every device operation. | |
| backend | No | Input backend preference. auto uses proven local backends and already-authorized portal input; portal explicitly requests XDG RemoteDesktop consent on Wayland; x11 forces XWayland/xdotool only for operations where read-back testing shows it is reliable. GNOME Wayland keyboard/text deliberately reject x11. | |
| shortcut | No | Keyboard shortcut such as CTRL+L, CMD+K or ALT+F4. | |
| window_id | No | Optional target window id returned by list_windows. On Wayland the target is focused and verified before keyboard/text input is dispatched. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Keyboard shortcut structured result for keyboard. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload. | |
| text | Yes | Concise human-readable result of the tool call. |