duplicate_node
Duplicate a local scene subtree as a sibling under a new name and save the scene atomically. Use dry-run or expected hash checks to preview changes and avoid overwriting unintended content.
Instructions
Duplicate a local subtree as a sibling with a newName and save atomically. Refuses instance contents and uncertain references. Supports dryRun and expectedHash.
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 |
|---|---|---|---|
| dryRun | No | ||
| newName | Yes | ||
| nodePath | Yes | Local subtree to duplicate | |
| scenePath | Yes | ||
| projectPath | Yes | ||
| expectedHash | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| saved | Yes | ||
| success | Yes | ||
| scenePath | Yes | ||
| operations | Yes | ||
| sourceHash | Yes |