visual_compare
Compare two screenshots — a baseline/expected capture and a live/current capture of (nominally) the same screen — using a perceptual pixel-diff. Returns the similarity score and changed-pixel count as text, AND returns the baseline, live, and diff images as images you can view directly, so YOU judge whether any flagged difference is a real regression (layout shift, missing/broken element, wrong color/theme, wrong or garbled text, unexpected new content) or just benign noise (dynamic content like timestamps/ads/carousels, anti-aliasing, rendering noise) — this tool does not make that call for you. Provide either two raw base64 images, or a review_id (from list_visual_reviews) to pull a stored baseline instead of re-fetching it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional short label for this comparison (e.g. flow/step name), for log correlation only. | |
| review_id | No | Instead of baseline_image_base64, pull the stored baseline image from a pending review (from list_visual_reviews) and compare it against live_image_base64. | |
| live_image_base64 | Yes | The live/current screenshot to compare against the baseline, raw base64 (no "data:" prefix). | |
| baseline_image_base64 | No | The baseline/expected screenshot, raw base64 PNG or JPEG (no "data:" prefix). Omit if using review_id instead. |