Insert node
insert_nodeInsert one node under an existing parent. node = { type: { resolvedName }, isCanvas, props: { className, …, custom: { displayName } }, nodes: [] }; parent and linkedNodes are set for you. Lists/tables: a Container with props.type "ul" | "li" | "table" | "tr" | "td" ….
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Site id. Pass it on every call. | |
| node | Yes | Node definition (shape in the tool description). | |
| nodeId | Yes | New unique id, e.g. "ftr_links". | |
| parentId | Yes | Parent id. | |
| 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" }). |