match-reference
Render a composition frame and compare it against a reference image. Returns a side-by-side view and a difference map so you can see exactly where the render deviates.
Instructions
Compare a composition against a reference image: renders the current frame, then returns a side-by-side (reference vs current) AND a difference map (bright where they differ) so you can see exactly WHERE the render deviates and converge on a match. Provide the reference as an on-disk image path. Select the comp by name or 1-based index, or leave empty for the active comp.
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": {
"referencePath": "<referencePath>"
},
"name": "match-reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name or 1-based index. Omit to use the active comp. | |
| time | No | Time in seconds to render (default comp midpoint). | |
| timeoutMs | No | Wait time in ms (default 90000). | |
| referencePath | Yes | Absolute path to the reference image on disk (PNG/JPG). |