press_key
Press keys or shortcuts like Enter, Escape, Tab, or Ctrl+K in a browser, with optional element focusing via ref or CSS selector for precise input.
Instructions
Press a key or shortcut (Enter, Escape, Tab, arrows, Ctrl+K). Optionally focus an element first via ref or selector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key to press, e.g. 'Enter'; printable chars as-is | |
| ref | No | Element ref to focus first | |
| selector | No | CSS selector to focus first | |
| modifiers | No | Modifier keys held during the press |