glass_key
Send keyboard chords like ctrl+s or Return for native GUI automation, validating the chord before pressing and releasing modifiers after completion.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chord | Yes | A chord like "ctrl+s", "Return", "alt+F4". |