compare_screenshots
Compare two screenshots pixel-by-pixel. Returns match percentage, mismatched pixel count, and a diff image highlighting differences.
Instructions
Compare two screenshots pixel-by-pixel using pixelmatch. Returns match percentage, mismatched pixel count, and a diff image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| beforeImage | Yes | Base64-encoded PNG image (before) | |
| afterImage | Yes | Base64-encoded PNG image (after) | |
| threshold | No | Perceptual difference threshold (0-1). Smaller is more sensitive. | |
| includeDiffImage | No | Return a base64 diff image highlighting mismatches |