design_set_text
Add or update a text layer in generative art projects by setting content, position, font, color, alignment, spacing, and render mode on the canvas.
Instructions
Add a text layer or update the text content of an existing text layer. If layerId is provided, updates that layer; otherwise creates a new text layer.
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": "design_set_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position on canvas (default: 50). | |
| y | No | Y position on canvas (default: 50). | |
| text | Yes | The text content to display. | |
| align | No | Text alignment (default: 'left'). | |
| color | No | Text color as hex string (default: '#ffffff'). | |
| kerning | No | Kerning mode (default: 'metrics'). | |
| layerId | No | ID of existing text layer to update. Omit to create a new layer. | |
| fontSize | No | Font size in pixels (default: 48). | |
| tracking | No | Tracking in em units (default: 0). | |
| fontFamily | No | Font family name (default: 'Inter'). | |
| renderMode | No | Render mode (default: 'auto'). | |
| letterSpacing | No | Letter spacing in pixels (default: 0). |