Compare Screenshots
screenshot_diffCompare two screenshots to highlight changed regions and return a diff image with its path, so QA teams can spot visual differences and investigate them further.
Instructions
Highlight changed regions between two screenshots. Returns the diff image and path; a visual difference is a lead, not a verdict.
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": "<before>",
"after": "<after>"
},
"name": "screenshot_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | diff | |
| after | Yes | ||
| before | Yes | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| run_id | Yes | ||
| stages | No | ||
| status | Yes | ||
| recovery | No | ||
| operation | Yes | ||
| error_code | Yes | ||
| session_state | Yes | ||
| schema_version | No | ||
| progress_omitted | No | ||
| progress_delivery_failed | No |