vibeside_visual_diff
Compare a baseline image with the current page or DOM element to detect UI regressions, layout shifts, and pixel mismatches, with highlighted diff output.
Instructions
Compare visual diff between a baseline screenshot/image and the current page or DOM element. Detects UI regressions, layout shifts, pixel mismatch percentage, and diff bounding box with highlighted diff image.
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": "<baseline>"
},
"name": "vibeside_visual_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| current | No | Current image as file path or base64. If omitted, captures active browser page or element. | |
| baseline | Yes | Baseline PNG image as file path or base64 string | |
| fullPage | No | Whether to capture full page if capturing current browser screenshot (default: false) | |
| selector | No | CSS selector of DOM element to capture if current is omitted. If omitted, captures active viewport. | |
| threshold | No | Per-pixel color delta tolerance (0.0 to 1.0, default: 0.1) | |
| saveDiffPath | No | Optional file path to save the highlighted diff PNG image | |
| includeDiffImage | No | Whether to generate base64 diff image with magenta highlights (default: true) |