Add nodes
add_nodesAdd a subtree: a flat map of new nodes plus the rootNodeId to attach under parentId (default page_home). Each node: type.resolvedName, isCanvas, props (className, custom.displayName), parent, nodes[], linkedNodes: {}. The map holds only new nodes; apply_kit_block covers standard sections. Contract: get_style_reference({ topic: "editing" }).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Site id. Pass it on every call. | |
| 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. |