Duplicate layer
cavalry_duplicate_layerDuplicate an existing Cavalry layer by its id and return the new layer ids. Optionally copy input connections to preserve wiring.
Instructions
Duplicate a layer. Returns the ids of the newly created layers.
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": {
"layerId": "<layerId>"
},
"name": "cavalry_duplicate_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | Cavalry layer id, e.g. "basicShape#1". Use cavalry_list_layers to find ids. | |
| withInputConnections | No | Also duplicate input connections. Defaults to false. |