web_tools_visual_diff
Visual regression check: screenshot a page and compare it with another URL (preview against production) or with an earlier screenshot. Returns the share of changed pixels, a same/different verdict, boxes around the changes and a diff image. Price: $0.04 USDC via x402, charged only on success. Part of Web tools: A real browser for agents: screenshot any page on desktop or phone, read a page as clean Markdown, print a URL or HTML to PDF, draw HTML to an image, make social cards, audit a page for SEO, speed, accessibility and broken links, and compare two versions of a page pixel by pixel..
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": {
"url": "<url>"
},
"name": "web_tools_visual_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page to check (the new version). | |
| dark | No | ||
| hide | No | CSS selectors to hide in both: timestamps, carousels, ads, anything that changes on its own. | |
| device | No | desktop 1280x800, laptop 1440x900, tablet 810x1080, phone 390x844 with a mobile browser identity. | desktop |
| waitMs | No | Extra wait after the page has loaded, for animations or late content. | |
| waitFor | No | CSS selector that must be visible before the capture. | |
| fullPage | No | ||
| threshold | No | ||
| baselineUrl | No | Page to compare against: production against a preview deploy, for example. | |
| failPercent | No | Above this share of changed pixels the pages count as different. | |
| baselineImage | No | Or an earlier screenshot as base64 PNG, taken with the same device and settings. | |
| baselineImageUrl | No |