new_element
Build a single structurally-valid element node from the real builder factory, then edit its style or specials and place it in a section's children.
Instructions
Build a single structurally-valid element node from the real builder factory. Returns the node — edit its specials/style, then place it in a section's children.
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": {
"type": "<type>"
},
"name": "new_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| opts | No | Factory opts: { text, src, width, height, style, config, specials, events, bindings, responsive, align }. align = horizontal placement in the grid cell: 'left'|'center'|'right'|'fill' (works on any element; buttons are content-width+centred by default — use align:'fill' to span the column). | |
| type | Yes | Element type (see list_elements) |