compare_screenshots
Analyzes pixel differences between two screenshots to detect visual changes. Reports percentage and region of changed pixels for UI regression testing.
Instructions
Compare two screenshots and describe visual differences.
Analyzes pixel differences between two images and reports the percentage of changed pixels and the region of change.
Useful for:
Verifying UI changes after code edits
Checking before/after visual regression
Confirming rendering output differences
Parameters:
image_path_1: Absolute path to the first (baseline) image.
image_path_2: Absolute path to the second (comparison) image.
max_size: Maximum pixel dimension for analysis. Default 800.
Returns a text description of the differences found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_size | No | ||
| image_path_1 | Yes | ||
| image_path_2 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |