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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>",
"scenePath": "<scenePath>",
"nodePath": "<nodePath>",
"newName": "<newName>"
},
"name": "duplicate_node"
}
}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) |