press_key
Press specific keys with modifiers like command, shift, option, or control. Optionally focus an app before pressing the key combination.
Instructions
Press a key combo (e.g. press 's' with ['command'] for Cmd+S). Supports a-z, 0-9, return, tab, space, delete, escape, arrows, f1-f12. If app is specified, focuses that app first. Prefer batch_actions when combining with other actions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name: a-z, 0-9, return, tab, space, delete, escape, up/down/left/right, f1-f12 | |
| modifiers | No | Modifier keys: 'command', 'shift', 'option', 'control' | |
| app | No | App to focus before pressing key (e.g. 'Google Chrome', 'Notes'). |