visual_diff
Compare two PNG screenshots pixel-by-pixel to detect visual regressions, returning changed pixel count and percentage for UI testing without Playwright.
Instructions
Compare two PNG screenshots pixel-by-pixel for visual regression testing. Returns diff statistics including changed pixel count and percentage. Does not require Playwright.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | Per-channel difference threshold (0-255) below which pixels are considered identical | |
| after_image | Yes | Base64-encoded PNG of the 'after' snapshot (no data URI prefix) | |
| before_image | Yes | Base64-encoded PNG of the 'before' snapshot (no data URI prefix) |