Fill many form fields at once
fill_formSets multiple form fields in a single round-trip and optionally clicks a submit element, returning per-field results to reduce repeated input calls.
Instructions
Set multiple form fields in ONE round-trip (faster than repeated form_input), then optionally click a submit element. Provide fields:[{ref,value}] from read_page/find; optional submitRef. Returns per-field {ok,error}; submitted=true means the submit element was CLICKED (not that the form was accepted). Fields are set without an actionability wait. All refs must be in ONE frame (use form_input per-field across frames).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tabId": "<tabId>",
"fields": "<fields>"
},
"name": "fill_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Target tab ID (must be in the MCP group) | |
| expect | No | Optional postcondition: observes the declared UI outcome after one action; failure never repeats input | |
| fields | Yes | Fields to set, in order | |
| submitRef | No | Optional ref to click after filling (submit) |