compare_urls
Capture screenshots of two webpages and compare them pixel by pixel. Returns difference statistics and a diff image showing visual changes.
Instructions
Compare screenshots from two different URLs. Captures screenshots of both webpages and compares them pixel by pixel. Returns difference statistics and a diff image showing the visual differences.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url1 | Yes | URL of the first webpage to capture | |
| url2 | Yes | URL of the second webpage to capture | |
| 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 | |
| diff_output_path | No | Optional: Path where the diff image will be saved. If not provided, a timestamped file will be created. |