compare_screenshots
Compare two screenshots using SHA-256 hash equality and size delta to detect visual changes after edits.
Instructions
Compare two screenshot files via SHA-256 hash equality and size delta. Quick way to spot whether a page changed visually after an edit. For pixel diffs, use a dedicated tool externally.
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": {
"before_path": "<before_path>",
"after_path": "<after_path>"
},
"name": "compare_screenshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| before_path | Yes | ||
| after_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identical | Yes | ||
| before_bytes | Yes | ||
| after_bytes | Yes | ||
| delta_bytes | Yes | ||
| before_sha256 | Yes | ||
| after_sha256 | Yes |