Compare two pages visually
compare_pagesCaptures two URLs and compares them pixel by pixel, returning a similarity score and overlay image marking what changed. Use it to check staging against production or a page before and after a change.
Instructions
Capture two URLs and compare them pixel by pixel. Returns a similarity score and an overlay image marking what changed, which you can look at. Costs 2 credits - it launches a browser per URL. Use for staging against production, or a page before and after a change.
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": {
"before_url": "<before_url>",
"after_url": "<after_url>"
},
"name": "compare_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after_url | Yes | ||
| full_page | No | ||
| threshold | No | Per-pixel colour tolerance. Higher ignores more, e.g. antialiasing differences. | |
| before_url | Yes |