compare_visual_regression
Capture and compare screenshots of a node or artboard to detect visual regressions or layout drift.
Instructions
Captures and compares visual screenshots of a node or artboard to detect unexpected visual regression or layout drift.
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": {
"nodeId": "<nodeId>"
},
"name": "compare_visual_regression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Optional target file ID. | |
| nodeId | Yes | Node ID to inspect. | |
| tolerancePercent | No | Allowed visual delta percentage (default: 1.0). |