Duplicate a network
duplicate_networkClone a node or complete COMP with all its contents to the same or a different parent path. Returns both source and new copy paths for easy network duplication.
Instructions
Copy a node or whole COMP (and all its contents) to a new node, placed in the source's parent or another parent_path. Returns the source path and the new copy's path. Use duplicate this way to clone a built network; use create_container instead when you just need a fresh empty COMP.
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": {
"source_path": "<source_path>"
},
"name": "duplicate_network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the copy (auto-generated if omitted). | |
| parent_path | No | Where to place the copy (defaults to the source's parent). | |
| source_path | Yes | Path of the node/COMP to duplicate. |