press_key
Press a key or key combination to submit, dismiss, navigate, or trigger shortcuts. Use for discrete keyboard actions, not for entering text.
Instructions
Press a single key, optionally with modifiers, to submit, dismiss, navigate or trigger a shortcut. Not for entering text: use fill_by_uid instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | One key, optionally preceded by "+"-separated modifiers, such as "Escape", "Enter" or "ctrl+shift+t". Modifiers: ctrl, alt, shift, meta. Named keys: Enter, Return, NumpadEnter, Tab, Backspace, Delete, Insert, Space, Escape, Home, End, PageUp, PageDown, ArrowUp, ArrowDown, ArrowLeft, ArrowRight, F1-F12, Numpad0-Numpad9, Clear, Pause, Help, Cancel, Semicolon, Equals, Add, Subtract, Multiply, Divide, Decimal, Separator. Anything else must be a single character. Any number of modifiers, but only one key. | |
| uid | No | Focusable element UID from snapshot to focus before pressing (default: the already focused element) |