clone_node
Duplicate any node along with its full subtree, placing the copy directly after the original under the same parent. Returns the copy's ID, name, and type.
Instructions
Duplicate a node — including its full subtree — and place the copy as a sibling right after the original under the same parent. Cloning a component instance keeps it an instance; to make a fresh instance of a component use create_instance instead. Returns { ok, nodeId, name, type } for the copy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Node id to clone |