compare_screenshots
Compare two screenshots pixel-by-pixel to detect UI regressions. Returns match percentage and a visual diff highlighting changes.
Instructions
Compare two base64 PNG screenshots pixel-by-pixel. Returns match percentage and a visual diff image highlighting differences. Useful for detecting UI regressions or verifying changes.
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": {
"screenshot1": "<screenshot1>",
"screenshot2": "<screenshot2>"
},
"name": "compare_screenshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | Per-pixel color tolerance 0-1 (default: 0.1) | |
| screenshot1 | Yes | First base64-encoded PNG screenshot | |
| screenshot2 | Yes | Second base64-encoded PNG screenshot |