press_key
Press a keyboard key using native browser events to trigger real form submission, shortcuts, and IME behavior. Optionally focus a specific element first.
Instructions
Press a keyboard key via CDP Input.dispatchKeyEvent.
Uses real browser key events, not synthetic JS dispatch - so native
form-submit semantics, browser shortcuts, and IME all behave as
they would with a human keyboard. When ``selector`` is given we
focus that element first.
Recognised names: ``Enter``, ``Tab``, ``Escape``, ``Backspace``,
``Delete``, ``ArrowUp/Down/Left/Right``, ``Space``, ``Home``, ``End``,
``PageUp``, ``PageDown``. Any single character (e.g. ``"a"``) is also
accepted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| selector | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |