Fill a form from a JSON of labels and values
qa_fill_jsonFill web forms in one call from a plain JSON object mapping field labels to values, covering selects, date pickers, checkboxes, radios, and sliders; report unmatched keys for correction.
Instructions
Hand the page a plain JSON object — { "Field label": "value" } — and it fills the form in ONE call. No refs, no snapshot of your own: this takes its own snapshot, matches each key against the fields' accessible names (exact, then truncated, then contains) and passes the whole lot to the batch filler, so every control kind is covered — text, native and CUSTOM selects, typeahead comboboxes, date pickers, checkboxes (true/false), radios, sliders, rich text. This is the shape of the JSON behind the panel's own { } editor and its ⚡Fill button, so a dataset you write here reads the same way a human would edit it. Reach for this when you ALREADY know the data — from a ticket, a persona, a CSV row — and for a form you have not mapped: it is one call instead of snapshot-then-batch. Use qa_snapshot + qa_type_many instead when you need to choose targets deliberately (duplicate labels, one specific control among many). Keys that match nothing come back as unmatched, together with the field names the page actually has, so the next call can use the right key without another round trip. DATE FIELDS BUILT FROM SECTIONS (MUI X DateField/DatePicker: separate Day / Month / Year spans the component owns) cannot be written to at all — the answer will say so under verified, and the way in is the calendar: click the "Choose …" button, switch to the year view, pick the year, step the month, click the day. A value of "click" PRESSES the thing instead of filling it — for the parts of a step that take no value: a chip, a custom radio (div role=radio), a switch, a toggle button. { "Climate": "click", "Medium": "click" } goes in the same batch as the text fields. REPEATED LABELS: a form built from a repeated component gives several controls the identical label — address them as "Full name", "Full name#2", "Full name#3", which is the same #N notation the panel's own dataset uses, so a dataset copied out of the { } editor works as written. ONE CALL PER WIZARD STEP: pass advance: "Next" and this presses that control after the fill — but only when the fill was clean. It is NOT pressed if an entry came back ok:false, if a key matched nothing, or if a value is still wrong after the repair, and the reply says which of those it was. Whether the page really advanced is decided by the DIFF the click produced (a step swap makes many nodes appear AND disappear), never by the click answering ok: a Next that is disabled until the step validates accepts a click and does nothing — that case is caught before the click, from the control's own state, and comes back as advanced.ok:false with stillNeeded. When it did advance, next carries the FIELD NAMES of the step you are now on, so the following step costs no qa_snapshot of your own; pass next:false to leave them out. dry_run:true resolves the keys and fills nothing — read-only, and the cheap way to check a dataset against a page (with advance set it reports wouldAdvance and presses nothing). Requires the one-time “Agent control” confirmation in the panel; without it the extension answers consent-required and does nothing.
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": {
"fields": "<fields>"
},
"name": "qa_fill_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | Default true when `advance` is set: ride the NEXT step's field names back in the same reply (`next.fields`, plus its title and what its forward control is called), so the step after this one costs you no qa_snapshot. Pass false when you do not need them. | |
| tabId | No | Target tab (from qa_tabs); omit for the active tab | |
| fields | Yes | The dataset: { "Initiative name": "Test run", "Country": "Ukraine", "Start date": "2026-08-01", "I agree": true } | |
| verify | No | Default true: after the batch, read the page back and re-write any field whose value did not actually land, one at a time and re-found by name. This is what makes MUI-style multi-section fields and masked inputs work; pass false to skip the check. | |
| within | No | Limit the matching to one form / dialog / step — the `selector` of a container node from a snapshot | |
| advance | No | After the fill, click the control with THIS accessible name — "Next", "Continue", "Submit". Resolved by name against a snapshot taken at that moment (a fill re-renders the step, which is what makes a ref taken earlier click the wrong button), skipped entirely when the control reports itself disabled, and refused when anything about the fill was not clean. The reply's `advanced.ok` tells you whether the page actually moved, judged by the click's diff. | |
| dry_run | No | Resolve the keys and report what would be filled, without touching the page | |
| frameId | No | Which frame to ask, from qa_frames. Omit for the page itself. A payment form, an SSO step or an embedded widget usually lives in a frame of its own, and a cross-origin one can only be read from inside it. |