browser_compare_screenshots
Compares two screenshots or PNGs to count changed pixels, measure change ratio, and locate the changed area via bounding box, with an optional diff image saved to disk.
Instructions
Deterministic visual comparison of two screenshots or PNG images. Calculates changed pixel count, changed ratio, and bounding box without Vision LLM overhead.
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": {
"image1": "<image1>",
"image2": "<image2>"
},
"name": "browser_compare_screenshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image1 | Yes | File path, data URL, or base64 of first screenshot | |
| image2 | Yes | File path, data URL, or base64 of second screenshot | |
| diff_output_path | No | Optional file path to save a visual diff highlight PNG | |
| channel_threshold | No | Per-channel RGBA sensitivity delta (0-255) |