Compare screenshots
visual_compareCompare before and after images pixel by pixel to measure visual changes and optionally save a red-channel difference image.
Instructions
Compute pixel-level visual change metrics and optionally save a red-channel difference 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": {
"beforePath": "<beforePath>",
"afterPath": "<afterPath>"
},
"name": "visual_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deviceId | No | ||
| afterPath | Yes | ||
| threshold | No | ||
| beforePath | Yes | ||
| deviceName | No | ||
| diffSavePath | No |