duplicate_node
Create a copy of a node and its children within a Godot scene, maintaining the same parent structure while assigning a new name to the duplicate.
Instructions
Duplicate a node (and its children) within the same scene, giving it a new name. The duplicate is placed under the same parent as the original.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project directory | |
| scenePath | Yes | Scene file path | |
| nodePath | Yes | Path of the node to duplicate (e.g. Player) | |
| newName | Yes | Name for the duplicated node (e.g. Player2) |