zen_keypress
Dispatch synthetic keyboard events with modifier keys and optional text input for browser automation.
Instructions
Dispatch a synthetic keyboard event. Use modifiers like
{"ctrl": True, "shift": True}. Pass text to also insert characters
into editable targets.
Args: key: Key name, e.g. "Enter", "Tab", "Escape", "ArrowDown", "a". selector: Optional element to target. Defaults to document.activeElement. modifiers: {"ctrl"|"shift"|"alt"|"meta": True}. text: If set, also insert this text into editable targets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| selector | No | ||
| modifiers | No | ||
| text | No | ||
| tab_id | No |