fill_form
Populate input, select, checkbox, radio, and textarea fields via CSS selectors or refs with React-compatible events; optionally submit and report values, mismatches, and page changes.
Instructions
Batch fill form fields with React-compatible events. Handles input, select, checkbox, radio, and textarea. Fields and submit take a CSS selector or a ref (n1, n2…) from navigate/get_interactives. With submit_selector it also submits, so a repeated call submits twice — not safe to retry blindly; after a submit, after_submit carries url, title and the text the page gained (the confirmation or the errors). Each field reports value_after and mismatch; page_changed carries the DOM delta, and the refs of what appeared.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | {selector or ref, value or checked} per field | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| frame_id | No | Target iframe id from get_frames; omitted = main frame | |
| submit_ref | No | Submit button as a ref, instead of submit_selector | |
| wait_after | No | Settle before returning: navigation waits for a page load, networkidle for quiet traffic | none |
| submit_selector | No | Submit button to click after filling |