verify.assert_screenshot_diff
Assert that the pixel diff ratio between two PNG screenshots stays at or below a specified maximum, enabling automated visual regression verification.
Instructions
Compare two PNG screenshots and assert the pixel diff ratio is at or below maxDiffRatio.
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": {
"baselinePath": "<baselinePath>",
"actualPath": "<actualPath>"
},
"name": "verify.assert_screenshot_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | ||
| actualPath | Yes | ||
| baselinePath | Yes | ||
| maxDiffRatio | No |