press_key
Simulate pressing a key or key combination, including modifiers and navigation keys, in a specified application for keyboard automation.
Instructions
Press a key or key-combination on the keyboard, including modifier and navigation keys.
This supports xdotool's
keysyntax.Examples: "a", "Return", "Tab", "super+c", "Up", "KP_0" (for the numpad 0 key).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App name, full app path, or unambiguous bundle identifier | |
| key | Yes | Key or key combination to press |