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
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) |