Screen Diff
screen_diffCompare two screenshots or frames to obtain an SSIM score, changed share, and highlighted changed boxes, so you can confirm a UI change affected only the expected areas.
Instructions
Compare two screenshots or frames: SSIM score, changed share, and changed boxes in b's pixels, to check a UI change happened only where expected.
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": {
"a": "<a>",
"b": "<b>"
},
"name": "screen_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Before image (or video: first frame). | |
| b | Yes | After image (or video); scaled to a's size. | |
| returnImage | No | Return b inline with changes outlined (default true). | |
| pixelThreshold | No | Mean 0-255 difference for a ~32x32 cell to count as changed (default 12). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ssim | Yes | ||
| regions | Yes | ||
| meanDiff | Yes | ||
| identical | Yes | ||
| changedFraction | Yes |