pixel_diff
Compare screenshots pixel-by-pixel to detect visual changes. Save a baseline, then compare later states to get a diff image with changed pixels highlighted in red.
Instructions
Compare screenshots pixel-by-pixel. First call with action 'save_baseline' to save current state, then make changes, then call with action 'compare' to see what changed. Returns diff image with changed pixels highlighted in red.
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": {
"action": "<action>"
},
"name": "pixel_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page URL. Auto-detected if omitted. | |
| name | No | Baseline name for multiple baselines. Default: auto-generated. | |
| action | Yes | save_baseline to save current state, compare to diff against saved baseline. | |
| selector | No | CSS selector for element-level diff. | |
| viewport | No | Viewport. Default: desktop. |