add_text
Adds a text layer to an image at a specified position, with configurable font, size, and color.
Instructions
Add a text layer to an image.
Parameters:
text: The text string to render
x, y: Position of the text layer's top-left corner (default 0, 0)
font: Font family name — "Sans" (default), "Serif", etc.
size: Font size in pixels (default 24)
color: Text color (CSS name, hex, or rgb() string; default "black")
image_index: Target image index (default 0)
Returns: {layer_name, layer_id, text_width, text_height, position}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| font | No | Sans | |
| size | No | ||
| text | Yes | ||
| color | No | black | |
| image_index | No |