clone_layer
Duplicate a layer as independent copies or live instances that mirror the source; set count and per-copy X/Y offsets to place repeated layers.
Instructions
Duplicate a layer. mode="copy" makes independent copies; mode="instance" makes live instances that mirror the source visual (editing the source updates them). count = number of NEW copies, each offset by (offsetX, offsetY) from the last.
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": "clone_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | copy or instance (default copy) | |
| count | No | Number of new copies (default 1) | |
| layerId | Yes | Source layer id to clone | |
| offsetX | No | Per-copy x offset in px (default 20) | |
| offsetY | No | Per-copy y offset in px (default 20) | |
| requestId | No | ||
| sessionId | No | ||
| expectedRevision | No |