move_node
Relocate a node while preserving its ID, bound variables, and component instances. Use to reorder children, move subtrees, or fix placement without recreating the node.
Instructions
Relocate a node without recreating it. Preserves IDs, bound variables, and component instances across the move, so callers tracking the node by ID never need to re-discover it. Use for: (a) changing child order within a container, (b) moving a subtree into a different parent, (c) fixing a placement mistake after jsx.
Examples: move_node({node: "1:3", name: "NewTitle"}) — rename in place move_node({node: "1:3", parent: "1:4"}) — move into parent 1:4 move_node({node: "1:5", index: 0}) — reorder within current parent
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Node ID (e.g. "1:3") to move/rename | |
| parent | No | Target parent node ID — the frame/container the node should live inside after the call | |
| name | No | New name (rename without changing parent) | |
| index | No | Reorder position among siblings. 0 = first, -1 = last. |