type_text
Type text into an input field by providing a ref from a snapshot or a CSS selector, replacing existing content for automated browser interactions.
Instructions
Type text into an input field. Provide either a ref (from snapshot) or a CSS selector. Use ref when available; otherwise use selector when snapshot doesn't assign refs (common with combobox/autocomplete inputs). Call snapshot first to find target element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID from create_tab | |
| ref | No | Element ref from snapshot (e.g. 'e1', 'e2') | |
| selector | No | CSS selector (e.g. 'input[name=q]', '#search-input') | |
| text | Yes | Text to type into the element. Replaces existing content. |