edit_text
Modify an existing text layer's content, font, size, or color in GIMP. Adjust only the properties you specify while leaving others unchanged.
Instructions
Edit an existing text layer's content or formatting.
Parameters:
layer_name: Name of the text layer to edit
text: New text content (omit to leave unchanged)
font: New font family (omit to leave unchanged)
size: New font size in pixels (omit to leave unchanged)
color: New text color (omit to leave unchanged)
image_index: Target image index (default 0)
Returns status dict.
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": {
"layer_name": "<layer_name>"
},
"name": "edit_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | ||
| size | No | ||
| text | No | ||
| color | No | ||
| layer_name | Yes | ||
| image_index | No |