Compare rendering between two engines
visual_compareCompare the same page in two browser engines to identify layout differences, classify root causes, and filter out non-actionable noise.
Instructions
Renders the same page in two engines (default chromium vs webkit) and reports where they differ. Two kinds of evidence: layout divergence per element (size, line count, position) and findings that exist in only one engine. Native controls and monospace metrics are counted but not listed unless you pass includeNoise:true — they differ in every engine and are not actionable. Divergences are classified so you are not buried in consequences: "root" = the element whose size or wrapping changed with no changed descendant (the likely cause), "propagated" = changed because a descendant changed, "shifted" = position only, mostly the vertical cascade (summarised, not listed), "missing" = present in one engine only. This is the most expensive tool: it runs a full audit twice.
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": "visual_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute URL, path relative to baseUrl, or local HTML file path. | |
| mode | No | Applied to both runs. Default fast. | |
| rules | No | Restrict the rule set. Omit for everything. | |
| target | No | Engine you want to catch differences in. Default webkit. | |
| baseline | No | Engine you develop against. Default chromium. | |
| conditions | No | Applied to both runs. Keep it to default unless you need more. | |
| thresholdPx | No | Minimum size/position delta to report. Default 2px. Lower catches subpixel drift, and more noise. | |
| includeNoise | No | Also list font-metric and native-control divergences. Default false: they are real but never actionable, and they outnumber actual layout bugs. The summary always reports their counts. | |
| maxDivergences | No | Cap on layout divergences. Default 40. |