clone_node
Duplicate a Figma node and its full subtree, placing the copy as a sibling immediately after the original. Returns the new node'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 |