compare_screenshot
Detects pixel regressions by capturing one frame and comparing dimensions, changed-pixel ratio, and bounds against a baseline PNG/JPEG; optionally saves current and diff images for Canvas UI checks.
Instructions
Pixel regression check against a local baseline PNG/JPEG. Captures one frame, compares dimensions/changed-pixel ratio/bounds, optionally saves current/diff; useful for Canvas UI verification.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_width | No | ||
| threshold | No | ||
| baseline_path | Yes | ||
| save_diff_path | No | ||
| save_current_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||