compare_image_with_url
Compare a local image with a webpage screenshot to detect visual differences. Returns pixel-level statistics and a diff image.
Instructions
Compare a local image file with a screenshot captured from a URL. Takes a screenshot of the webpage and compares it pixel by pixel with the provided image. Returns difference statistics and a diff image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the webpage to capture and compare | |
| includeAA | No | Optional: If true, include anti-aliased pixels in the diff. Default: false | |
| threshold | No | Optional: Matching threshold (0-1). Lower values are more sensitive. Default: 0.1 | |
| image_path | Yes | Absolute or relative path to the local image file | |
| diff_output_path | No | Optional: Path where the diff image will be saved. If not provided, a timestamped file will be created. |