Reparent Node
node_insert_childInsert a child node under a specified parent node at a desired position in the children array.
Instructions
Reparent a node under a new parent at an optional index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parentId | Yes | ID of the new parent node | |
| parentNodeName | Yes | Name of the parent node to verify against | |
| childId | Yes | ID of the child node to reparent | |
| childNodeName | Yes | Name of the child node to verify against | |
| index | No | Position in parent's children array (default: append) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| childId | Yes | ID of the reparented child node | |
| newParentId | Yes | ID of the new parent node | |
| index | Yes | Index at which the child was inserted |