Inspect image
gimp_inspect_imageInspect a GIMP image to retrieve its size, mode, precision, resolution, unsaved changes, associated files, and complete ordered layer tree without relying on the active selection.
Instructions
Describe one image: size, mode, precision, resolution, unsaved changes, associated files and the full ordered layer tree (groups, children, masks, offsets, opacity, blend mode, locks). Does not depend on GIMP's active selection.
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": "<image>"
},
"name": "gimp_inspect_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image id from gimp_status, e.g. 'image:1@a1b2c3d4'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| file | Yes | ||
| name | Yes | GIMP's display name (may be localized). | |
| unit | No | Display/print unit abbreviation, e.g. 'in', 'mm'. | |
| dirty | Yes | ||
| paths | No | Paths (vectors), top first. | |
| width | Yes | ||
| height | Yes | ||
| layers | Yes | Layer tree, top-most layer first. | |
| channels | No | Saved selections and masks. | |
| xcf_file | Yes | XCF file the image was loaded from or saved to. | |
| base_type | Yes | 'rgb', 'gray' or 'indexed'. | |
| precision | Yes | ||
| resolution | Yes | ||
| exported_file | Yes | ||
| imported_file | Yes |