neuron_fill_and_submit
Fill a form and optionally submit it in one call: provide field selectors/values, screenshot for review, click submit, and get a before/after diff to verify changes.
Instructions
Fill a form and optionally submit it in one call. Takes a map of field selectors to values, fills each one, optionally screenshots the filled form for review, and clicks the submit button if specified. Returns the before/after page state diff so you can verify what changed. Replaces the typical find → type → find → type → screenshot → click chain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Chrome tab ID | |
| fields | Yes | Fields to fill — each has selectors/texts to find the input and a value to type | |
| delayMs | No | Delay between field fills in ms (default: 200) | |
| screenshot | No | Screenshot the form after filling, before submit (default: true) | |
| submitText | No | Visible text on the submit button (alternative to submitSelector) | |
| submitSelector | No | CSS selector for the submit button (optional — omit to fill without submitting) |