compare
Detect pixel differences between two sprite frames or files, returning the changed pixel count and bounding box so you can verify whether a part moved; zero changed pixels confirms no movement.
Instructions
Pixel difference between two frames (of one sprite, or of two files): changed pixel count and the box that changed. 0 changed pixels proves a part did not move.
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": {
"path": "<path>",
"frame_a": "<frame_a>",
"frame_b": "<frame_b>"
},
"name": "compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| layer | No | ||
| region | No | ||
| frame_a | Yes | ||
| frame_b | Yes | ||
| other_path | No |