assert_visual_match
Compare a screenshot against a baseline image and return a pass/fail result if the pixel difference stays below a specified threshold.
Instructions
Assert that a screenshot matches a baseline within a threshold - pass/fail result
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": {
"name": "<name>",
"baseline": "<baseline>"
},
"name": "assert_visual_match"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Screenshot name to check — must match a name previously used with take_screenshot_with_context | |
| baseline | Yes | Path or name of the baseline screenshot (resolves against baselines directory if not a full path) | |
| threshold | No | Acceptable difference threshold (default: 0.01) |