glass_key
Press key chords such as 'ctrl+s' or 'Return' to trigger shortcuts and named keys in native GUI apps, covering inputs literal text cannot express.
Instructions
Press a key chord like 'ctrl+s', 'Return', 'alt+F4'. One key with any number of modifiers, joined by '+': the last token is the key, every earlier one a modifier (ctrl, shift, alt, super — cmd, win and meta are accepted names for super, and all of them are case-insensitive). The key is a named key such as Return, Escape, Tab, Delete, an arrow or F1-F12, or a single printable ASCII character. An unrecognised modifier or key name is rejected with an error naming the token, so nothing is half-pressed; modifiers are released again when the chord completes. Use this for shortcuts and named keys — glass_type is for literal text and cannot express either. If at least two next actions or waits are known, use glass_do instead of separate calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chord | Yes | A chord like "ctrl+s", "Return", "alt+F4". |