browser_press_key
Press a key or chord as real keyboard events on a targeted or focused element, enabling form submission, tab navigation, shortcuts, and other keyboard interactions in browser automation.
Instructions
Press a key or chord as real key events: Enter, Tab, Escape, Control+a; to a ref, selector or text, else the focused element. For text, browser_type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | A key name or chord, e.g. Enter or Control+a | |
| ref | No | Element ref from browser_snapshot, e.g. 12 | |
| text | No | Visible text or label of the element, instead of ref | |
| selector | No | CSS selector (first match), instead of ref | |
| snapshot | No | Also return the page snapshot after the action |