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.
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": {
"url1": "<url1>",
"url2": "<url2>"
},
"name": "compare_urls"
}
}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. |