Compare Web Screenshots
compare_web_screenshotsCompare two self-verifying PNG screenshot artifacts locally to return exact changed-pixel ratios and channel deltas without OCR or external services.
Instructions
Compare two self-verifying PNG screenshot artifacts with local pixel metrics. Returns exact changed-pixel ratios and channel deltas without OCR or external services.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"after": {
"bytes": 70,
"sha256": "153cf6c9a526a63053a37b10234c2fd85df38887c2dc0a800d90abfa6631d01c",
"media_type": "image/png",
"data_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PzWvWQAAAABJRU5ErkJggg=="
},
"before": {
"bytes": 70,
"sha256": "153cf6c9a526a63053a37b10234c2fd85df38887c2dc0a800d90abfa6631d01c",
"media_type": "image/png",
"data_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PzWvWQAAAABJRU5ErkJggg=="
},
"channel_threshold": 0
},
"name": "compare_web_screenshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | The later or right-hand observation to compare. | |
| before | Yes | The earlier or left-hand observation to compare. | |
| channel_threshold | No |