Browser Type
browser_typeType text into input fields, textareas, search bars, or contenteditable elements by CSS selector to fill forms, enter queries, or write messages. Combine with clicking to submit.
Instructions
Type text into any input field, textarea, search bar, or contenteditable element by CSS selector. Use this to fill out forms, enter search queries, write messages, type login credentials, etc. Examples: browser_type({selector: "input[name=email]", text: "user@example.com"}), browser_type({selector: "#search", text: "search query"}). Combine with browser_click to submit forms after filling them. To type into an element inside an iframe, pass frameIndex from browser_frames. To reach into shadow DOM, prefix the selector with "pierce/" (e.g. "pierce/input#name") — no frameIndex needed for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. Defaults to extension. | |
| text | Yes | Text to type into the element. | |
| selector | Yes | CSS selector of the element to type into. Prefix with "pierce/" to reach into shadow DOM. | |
| sessionId | No | Puppeteer session ID for headless mode. Skips mode selection. | |
| frameIndex | No | Target a specific iframe by index (from browser_frames) instead of the main page. |