Add design shape
add_design_shapeAdd a decorative shape, such as a scrim, divider, or badge, to one slide of an existing design. Placement "front" (the default) puts it on top of the content; "back" puts it just above the slide background, behind the content. 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>",
"shape": "<shape>"
},
"name": "add_design_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | Yes | The shape: { "geo": "rectangle"|"roundedRectangle"|"circle"|"pill"|..., "w": <px>, "h": <px>, "x": <px>, "y": <px>, "fill": <color or { "gradient": [<hex>, ...], "angle": <deg> }>, "radius": <px>, "stroke": { "color", "width" }, "rotate": <deg>, "opacity": 0..1, "placement": "front"|"back" }. | |
| slide | Yes | The slide to add to: "frame" for a single design, or the slide alias ("s1", "s2", ...) from the design structure. | |
| design_id | Yes | The design id (from compose_design or generate_post) or the key from a /designs/<key> URL. | |
| workspace_key | Yes | Key of the workspace to act in. Call list_workspaces to see the workspaces you have access to and their keys. |