set_text
Change a text layer's text or style in an image by updating content, font, size, color, alignment, or spacing.
Instructions
Change a text layer's text or style.
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": "<layer>"
},
"name": "set_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | ||
| font | No | ||
| size | No | ||
| text | No | ||
| align | No | ||
| color | No | ||
| layer | Yes | ||
| italic | No | ||
| project | No | ||
| max_width | No | ||
| line_spacing | No | ||
| stroke_color | No | ||
| stroke_width | No |