What changed on this page — by control, not by pixel
qa_diffCapture a page state, apply a change, then compare the two to report what appeared, disappeared, moved, resized, or changed state — naming causes instead of pixel counts.
Instructions
PIXEL DIFFS SAY «23 417 PIXELS DIFFER» AND LEAVE YOU TO FIND OUT WHY. This one says «the Submit button moved 8px down, its padding went 8 → 12, and it went disabled» — a sentence with a cause in it. op:"before" takes the state of the page as it is now; do the thing (a fix, a deploy, a click, a different branch); op:"after" compares. Reported: what appeared, what disappeared, and what moved, resized, changed state or changed a style that people argue about. Text content is deliberately NOT compared — a name, a total or a timestamp differs between two healthy runs, and reporting those is exactly the noise that gets visual diffing switched off everywhere else. Movements under 2px are the browser rounding a layout. When the two states cannot be matched at all — a virtualised list, a re-keyed render — it SAYS so instead of reporting three hundred false appearances.
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": {
"op": "<op>"
},
"name": "qa_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | "before" remembers this page; "after" compares against it; "drop" forgets it | |
| draw | No | For "after": write a PNG here with every changed control outlined and labelled with what changed | |
| omit | No | Drop these field paths and keep the rest — the cheap way to lose one huge field (["html"], ["steps"]) without listing everything you want. | |
| tabId | No | Target tab (from qa_tabs); omit for the active tab | |
| select | No | Keep only these field paths, e.g. ["ok","fields[].name"]. Dots walk into objects, and a path through a list applies to every entry, keeping it a list. A path that matches nothing is reported back with the field names that ARE there. |