Type text
browser_typeType text into any input or textarea on a live web page by targeting elements via CSS selector, accessibility role, or snapshot ref, with options to clear, append, and submit.
Instructions
Types text into an input or textarea. Address the element by ref (from the latest browser_snapshot), or by css, or by role+name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | CSS selector, as an alternative to ref. | |
| ref | No | Element ref from the most recent snapshot, e.g. "e12". Preferred — refs are exact. Only valid for the page state that produced them. | |
| name | No | Accessible name to match alongside role. | |
| role | No | ARIA role, e.g. "button". Combine with name for an accessible-name match. | |
| text | Yes | Text to enter. | |
| clear | No | Replace existing content (default true). False appends keystroke by keystroke. | |
| index | No | Which match to use when the selector is ambiguous (0-based, default 0). | |
| submit | No | Press Enter afterwards. | |
| sessionId | Yes | Session id returned by browser_start. |