keyboard
Type text or send key combos to a focused window. Optionally target a specific window to direct keystrokes correctly.
Instructions
Keyboard to the focused app. action='type' (text, unicode-safe) |
'key' (keys combo: 'ctrl+shift+t', 'esc', 'F5'; aliases
enter/esc/tab/backspace/pgup/pgdn/arrows, else XKB keysyms). Pass
window (an address from desktop) to focus that window first, so
keystrokes land in the intended app rather than whatever currently
holds focus. This drives shortcuts the focused application handles
(ctrl+t, ctrl+l). It does NOT trigger Hyprland's own keybinds
(super+...): those go through use_bind, and workspace/window actions
through hypr. then ('desktop'|'screenshot'|'ui'|'none') appends the
result to this call. allow_auth=true overrides the default refusal to
type into a password field or a system authentication dialog (only when
a human intends that credential entry).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | ||
| text | No | ||
| then | No | none | |
| action | Yes | ||
| window | No | ||
| allow_auth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |