visual_compare
Compare two PNG images pixel-by-pixel to identify visual differences. Obtain metrics and a highlighted diff image, with matching image sizes and a lease_id required.
Instructions
Pixel-diff two PNG artifacts. Returns metrics + a highlighted diff image. Sizes must match. Requires lease_id.
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": {
"lease_id": "<lease_id>",
"artifact_id_a": "<artifact_id_a>",
"artifact_id_b": "<artifact_id_b>"
},
"name": "visual_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lease_id | Yes | ||
| threshold | No | ||
| artifact_id_a | Yes | ||
| artifact_id_b | Yes |