compare_screenshots
Structures visual differences between expected and actual screenshots, then triggers fixes based on identified changes.
Instructions
Visual diff between expected and actual. Chat compares two images and describes the differences, then this tool structures the findings and can trigger fixes.
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": {
"sessionId": "<sessionId>",
"expected": "<expected>",
"actual": "<actual>",
"differences": "<differences>"
},
"name": "compare_screenshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actual | Yes | Description of the actual/after screenshot | |
| expected | Yes | Description of the expected/before screenshot | |
| sessionId | Yes | Session ID | |
| differences | Yes | What differences Chat spotted between the two |