compare_to_reference
Compares the canvas to a reference image and returns match scores, side-by-side views, and a heatmap highlighting the worst areas to fix first.
Instructions
See how close the canvas is to a reference picture. Returns the reference
shrunk to the canvas size, the canvas, and a heatmap (red = most different)
side by side, plus scores out of 100: score per pixel, shape_score
with fine detail blurred away (composition, values, and colour masses), and
close_pixels (% that nearly match). worst_areas are the cells of a
grid x grid split that differ most, with both average colours and
whether the art is darker or lighter: fix those first. crop_* picks the
part of the reference the canvas shows. layer compares one layer; clear
pixels count as black. Headless: pass file.
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": {
"image_path": "<image_path>"
},
"name": "compare_to_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| grid | No | ||
| frame | No | ||
| layer | No | ||
| crop_x | No | ||
| crop_y | No | ||
| max_size | No | ||
| crop_width | No | ||
| image_path | Yes | ||
| crop_height | No |