compare_screenshots
Compare two screenshots pixel-by-pixel to detect visual differences. Returns a diff result with mismatch percentage for automated visual testing.
Instructions
Compare two screenshots pixel-by-pixel and return a diff result with mismatch percentage
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": {
"baseline": "<baseline>",
"current": "<current>"
},
"name": "compare_screenshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| current | Yes | Path to the current screenshot | |
| baseline | Yes | Path to the baseline screenshot | |
| threshold | No | Pixel difference threshold 0-1 (default: 0.01) |