Set design font weight
set_design_font_weightSet the font weight of one text element in an existing design, for example 400 for regular or 700 for bold. If the element's font doesn't have that weight, the nearest one it has is used and the response says so. 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>",
"element": "<element>",
"font_weight": "<font_weight>"
},
"name": "set_design_font_weight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element | Yes | The element to change: its alias from the design structure ("text-1", "image-1", "bg", "logo", or slide-scoped "s2-text-1"), or its raw id ("shape:..."). | |
| design_id | Yes | The design id (from compose_design or generate_post) or the key from a /designs/<key> URL. | |
| font_weight | Yes | Weight, e.g. 400, 600, 700. | |
| workspace_key | Yes | Key of the workspace to act in. Call list_workspaces to see the workspaces you have access to and their keys. |