type_text
Enter text into input fields using snapshot refs or CSS selectors. Falls back to selectors for combobox and autocomplete inputs when refs are unavailable.
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 |
|---|---|---|---|
| ref | No | Element ref from snapshot (e.g. 'e1', 'e2') | |
| text | Yes | Text to type into the element. Replaces existing content. | |
| tabId | Yes | Tab ID from create_tab | |
| selector | No | CSS selector (e.g. 'input[name=q]', '#search-input') |