Add nodes
add_nodesBuild a section: a flat map of new nodes plus the rootNodeId to attach under parentId (default page_home). The default way to design a section for this business. Each node: type.resolvedName, isCanvas, props (className, custom.displayName), parent, nodes[], linkedNodes: {}. The map holds only new nodes; get_block shows example shapes. Contract: get_style_reference({ topic: "editing" }).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Site id. | |
| nodes | Yes | Flat map { nodeId: node }. | |
| parentId | No | Existing parent (default page_home). | |
| position | No | Index in the parent (default: end). | |
| modifiers | No | { Text: [{ name, classes, requires }], … } upserted into ROOT.props.modifiers. Only needed when className uses shortcut modifier names. See get_style_reference({ topic: "editing" }). | |
| rootNodeId | Yes | The single top-level node in `nodes` to attach. | |
| buttonValidation | No | off | warn | fix (default) | strict, for Buttons in the payload. |