compare_pages
Compare two URLs to verify staging versus live or before versus after a deploy, returning screenshot, content, and performance diffs with pass/fail results.
Instructions
Compare two URLs in one call — staging vs live, before vs after a deploy. Loads both (optionally after the same interact_and_test steps, a consent action, and a device emulation), then returns: side-by-side full-page screenshots + pixel diff (passed vs max_diff_percent), a facts diff (title, meta description, canonical, H1s, hreflang, lang, robots, og tags, link/image/form counts), a visible-text diff (similarity + added/removed lines), performance metric deltas (b − a), transfer-weight delta, and same (true when screenshot, facts and text all agree). A side that fails to load is reported with its error while the other side is still captured in full.
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_a": "<url_a>",
"url_b": "<url_b>"
},
"name": "compare_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | interact_and_test steps to run on BOTH pages before capturing (e.g. open a menu, switch language) | |
| url_a | Yes | First URL (e.g. staging) | |
| url_b | Yes | Second URL (e.g. live) | |
| device | No | Viewport preset or device name for both pages (see open_session.device) | |
| consent | No | Handle the cookie banner on both pages first | |
| project | No | Project whose authenticated context loads url_a (and url_b unless project_b is given) | |
| project_b | No | Project for url_b when the two sites have different logins | |
| threshold | No | Per-pixel colour tolerance 0-255 (default: 10) | |
| run_checks | No | Audit checks to run on both sides (visual, accessibility, functionality, seo, geo, performance) — adds issues[] per side and issue_count_delta | |
| max_diff_percent | No | Screenshot diff threshold for passed (default: 1.0) |