Inspect text layer
gimp_inspect_textInspect a GIMP text item to retrieve its text, font, size and unit, color, justification, spacing, antialiasing, and geometry for precise layer analysis.
Instructions
Text, font, size and unit, color, justification, spacing, antialiasing and geometry.
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_text"
}
}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 | Yes | ||
| y | Yes | ||
| font | Yes | ||
| item | Yes | ||
| size | Yes | ||
| text | Yes | ||
| color | Yes | #rrggbb (sRGB). | |
| width | Yes | ||
| height | Yes | ||
| justify | Yes | ||
| antialias | Yes | ||
| size_unit | Yes | 'px' (pixels) or 'pt' (points, converted with the image resolution). | |
| line_spacing | Yes | Extra pixels between lines. | |
| letter_spacing | Yes | Extra pixels between letters. |