compare_visual
Compare a URL's current screenshot against a saved baseline pixel-by-pixel. Returns diff statistics and diff image to determine if changes are real regressions or acceptable variations.
Instructions
Capture the current state of a URL and compare it pixel-by-pixel against a saved baseline. Returns diff statistics AND the diff image, so you (the AI) can visually judge whether the changes are real regressions or acceptable variations (font rendering, dynamic content, intentional redesign). Pixel diff alone produces many false positives — your visual judgment is the point of this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to capture (defaults to the URL stored with the baseline) | |
| name | Yes | Baseline identifier to compare against | |
| threshold | No | Per-pixel color sensitivity 0-1; lower is stricter (default 0.1) | |
| includeDiffImage | No | Return the diff image for visual inspection (default true). Set false for a stats-only check. |