Press a key
browser_press_keySend keyboard key presses to a page or focused element, using Playwright key names or chords like Control+A. Optionally focus a specific element first to simulate user input.
Instructions
Send a keyboard key to the page or to a focused element. Accepts Playwright key names: Enter, Tab, Escape, ArrowDown, PageDown, Backspace, or chords like Control+A.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | e.g. 'Enter', 'Escape', 'Control+A'. | |
| repeat | No | ||
| target | No | Focus this element first. | |
| tabIndex | No | Act on this tab just for this call, without changing which tab is active. Defaults to the active tab. To switch tabs for good, use browser_tabs with action 'select'. | |
| profileId | Yes | Browser profile id, as passed to start_profile. |