gimp.add_text
Add text to a GIMP image by creating a text layer. Position the text at specific x,y coordinates and customize font, size, color, and border.
Instructions
Create a text layer in an image.
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_id": "<image_id>",
"text": "<text>",
"x": "<x>",
"y": "<y>"
},
"name": "gimp.add_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_id | Yes | ||
| drawable_id | No | Optional drawable for floating text selection; omit for a new text layer. | |
| text | Yes | ||
| x | Yes | ||
| y | Yes | ||
| size | No | ||
| font | No | Sans-serif | |
| color | No | CSS color string, [r,g,b], [r,g,b,a], or {r,g,b,a}. | |
| border | No | ||
| antialias | No |