compare_images
Detect visual regressions by SSIM-comparing two image files. Get similarity score, changed regions, heatmap, and side-by-side preview to validate UI changes.
Instructions
SSIM-compare two image files (e.g. a Figma export vs a capture). Paths may be relative to the project root. Returns score, changed regions, a heatmap path and an a|b preview.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_a": "<image_a>",
"image_b": "<image_b>"
},
"name": "compare_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| align | No | pad | |
| image_a | Yes | ||
| image_b | Yes | ||
| threshold | No | ||
| max_changed_ratio | No |