vision_diff
Identify visual differences between design mockups and implementation screenshots. Compare expected and actual UI to detect layout, styling, and pixel-level deviations.
Instructions
Compare two UI screenshots or a design mockup with an implementation screenshot to identify visual differences. Use this tool ONLY when comparing an expected/reference UI with an actual implementation. Do NOT use for: analyzing a single image (use vision_inspect), error diagnosis, general image comparison.
Args: expected_image_source: Expected image source - local file path or remote URL (recommended) actual_image_source: Actual image source - local file path or remote URL (recommended) expected_image_path: Expected/design image path (backward compatible) actual_image_path: Actual/screenshot path (backward compatible) task: Comparison task description include_pixel_diff: Whether to include pixel-level diff visualization expected_image_data: Base64 encoded expected image data (backward compatible) actual_image_data: Base64 encoded actual image data (backward compatible)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | 比较两张图片,指出差异 | |
| actual_image_data | No | ||
| actual_image_path | No | ||
| include_pixel_diff | No | ||
| actual_image_source | No | ||
| expected_image_data | No | ||
| expected_image_path | No | ||
| expected_image_source | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |