compare_screenshots
Compare two PNG images pixel by pixel to detect changes, returning the change count and a red-highlighted diff image.
Instructions
Compare two PNG images (res:// or user:// path, or raw base64) pixel by pixel and return the change count plus a red-highlighted diff image
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": {
"image_a": "<image_a>",
"image_b": "<image_b>"
},
"name": "compare_screenshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_a | Yes | ||
| image_b | Yes | ||
| threshold | No |