diff_frames
Compare two PNG frames pixel by pixel and return the changed region and ratio, helping verify visual differences between game screenshots.
Instructions
Compare two PNG frames pixel by pixel and return their changed region and ratio.
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": {
"frame_a": "<frame_a>",
"frame_b": "<frame_b>"
},
"name": "diff_frames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame_a | Yes | ||
| frame_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| ratio | No | ||
| errors | Yes | ||
| region | No | ||
| size_a | No | ||
| size_b | No | ||
| warnings | No | ||
| identical | No | ||
| size_match | No | ||
| total_pixels | No | ||
| changed_pixels | No |