Add design text
add_design_textAdd a new text element to one slide of an existing design. Place it with x/y/width/height in design pixels, and set its typography with font_family, font_size, font_weight, and color (take the brand fonts and colors from get_brand_kit). Optionally give it a panel behind it, such as a button. Existing elements are not changed. The change is saved to the design. The response has the updated design structure (element aliases and positions) and a rendered preview.
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": {
"workspace_key": "<workspace_key>",
"design_id": "<design_id>",
"slide": "<slide>",
"text": "<text>"
},
"name": "add_design_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Left edge, in design pixels. | |
| y | No | Top edge, in design pixels. | |
| text | Yes | The words to add. | |
| color | No | Text color: a hex color such as "#1A1A1A" (8-digit #RRGGBBAA for transparency); take brand colors as hex values from get_brand_kit. Defaults to black. | |
| panel | No | Optional panel behind the text: { "color": a hex color such as "#1A1A1A" (8-digit #RRGGBBAA for transparency); take brand colors as hex values from get_brand_kit, "opacity": 0..1, "shape": "box"|"silhouetteRounded"|"callToAction" }. | |
| slide | Yes | The slide to add to: "frame" for a single design, or the slide alias ("s1", "s2", ...) from the design structure. | |
| width | No | Box width, in design pixels. | |
| height | No | Box height, in design pixels. | |
| design_id | Yes | The design id (from compose_design or generate_post) or the key from a /designs/<key> URL. | |
| font_size | No | Size in points. Defaults to 48. | |
| font_family | No | Font family. Defaults to Inter. | |
| font_weight | No | Weight, e.g. 400 or 700. Defaults to 400. | |
| workspace_key | Yes | Key of the workspace to act in. Call list_workspaces to see the workspaces you have access to and their keys. |