add_text
Add customizable text layers to images, with options for font, size, color, position, alignment, and line wrapping.
Instructions
Text layer. font: sans, serif, mono, display, handwriting, or a system font name/file. max_width>0 wraps lines. Without x/y it is centered; then align_layer to place it.
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": {
"text": "<text>"
},
"name": "add_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| bold | No | ||
| font | No | sans | |
| name | No | ||
| size | No | ||
| text | Yes | ||
| align | No | left | |
| color | No | #ffffff | |
| italic | No | ||
| project | No | ||
| max_width | No | ||
| line_spacing | No | ||
| stroke_color | No | #000000 | |
| stroke_width | No |