argus_visual_diff
Detect visual regressions by comparing a screenshot of a URL pixel-by-pixel against a stored baseline. Optionally update the baseline for intentional UI changes.
Instructions
Screenshot baseline comparison for a URL — captures a PNG screenshot and compares it pixel-by-pixel against a stored baseline using pixelmatch. First call: saves baseline, returns visual_baseline_created (info). Subsequent calls: returns visual_regression (warning ≥0.1% / critical ≥5% pixels changed) + visual_diff_summary (always). Baseline stored in reports/baselines/screenshots/. Use in CI or fix loops to detect unintended visual regressions without a full audit. Pass updateBaseline: true to force-refresh the stored baseline (e.g. after intentional UI changes). Requires Chrome on --remote-debugging-port=9222.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL to capture and compare (e.g. http://localhost:3000/dashboard). Must be reachable by the running Chrome instance. | |
| updateBaseline | No | When true, deletes the existing baseline PNG and saves a fresh one from the current screenshot. Use after intentional UI changes to reset the reference. | |
| baselineDir | No | Optional override for the baseline storage directory. Defaults to reports/baselines/screenshots/. |