mac_key
Presses a key or modifier chord on macOS and can refuse input unless a specified app is frontmost, preventing shortcuts from hitting the wrong window.
Instructions
Press a key or modifier chord, e.g. 'return', 'esc', 'cmd-c', 'cmd-shift-v', 'arrow-up'. Pass app to refuse input unless that app is frontmost (focus guard).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| key | No |