check_exr_validity
Validate that an EXR file opens correctly and optionally scan channels for NaN or Inf pixels to catch corrupted or invalid image data before processing.
Instructions
Validate that an EXR file can be opened and optionally scan for NaN/Inf pixels. By default scans all channels; specify channels to reduce I/O on large files.
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": {
"file_path": "<file_path>"
},
"name": "check_exr_validity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channels | No | Channels to scan; null means all channels. Use this to limit I/O. | |
| file_path | Yes | Absolute path to the EXR file | |
| check_pixels | No | Scan pixel data to detect NaN/Inf |