Browser Form Fill
browser_form_fillFill multiple form fields in one browser call by mapping CSS selectors to values, then optionally click a submit button. Handles text inputs, selects, checkboxes, and radios automatically.
Instructions
Fill multiple form fields in one call: { "#email": "user@example.com", "#country": "IN" }. Automatically uses the right interaction per element — types into text inputs/textareas, uses native selection, and clicks checkboxes/radios (interpreting a truthy value as "check it"). Optionally click a submit button afterward.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. Defaults to extension. | |
| fields | Yes | Map of CSS selector -> value to fill. Non-empty. | |
| sessionId | No | Puppeteer session ID for headless mode. Skips mode selection. | |
| submitSelector | No | CSS selector of a submit button to click after all fields are filled. |