Inspect item
gimp_inspect_itemInspect a GIMP item by ID to retrieve its kind, owning image, parent, position, and layer properties; returns NOT_FOUND if the item was deleted.
Instructions
Describe one item by id: kind (layer, group, text, mask, channel, path), owning image, parent and position, and its layer properties. Fails with NOT_FOUND once the item is deleted.
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": {
"item": "<item>"
},
"name": "gimp_inspect_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Item id (layer, group, mask...) e.g. 'item:5@a1b2c3d4'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| id | Yes | ||
| kind | Yes | ||
| mask | No | ||
| mode | No | ||
| name | Yes | ||
| image | Yes | ||
| locks | No | ||
| width | No | ||
| height | No | ||
| parent | Yes | Parent group id (layers) or owning layer id (masks). | |
| opacity | No | ||
| visible | Yes | ||
| children | No | Child ids for groups, top-most first. | |
| position | Yes | Index within the parent, 0 = top-most. | |
| has_alpha | No |