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.
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": {
"baseline_path": "<baseline_path>"
},
"name": "compare_screenshot"
}
}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 | |||