Key
keySend keyboard keys or chord shortcuts to a target macOS application. Use to automate commands like cmd+a or return, with optional repeat and app scoping.
Instructions
Send a key or chord to a scoped application.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Key or chord, for example cmd+a or return. | |
| repeat | No | ||
| app_ref | No | ||
| strategy | No | Prefer accessibility, require accessibility, or require event dispatch. | auto |
| return_state | No | Optionally observe the target again after the action. | none |