duplicate_layer
Copy a layer and all its child layers directly above the original, optionally assigning a new name, then return the copy's path.
Instructions
Copy a layer (a group with all its children) right above the original.
The copy is named new_name, or " copy". Returns the copy's path.
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": {
"path": "<path>",
"layer": "<layer>"
},
"name": "duplicate_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| layer | Yes | Layer name, or a 'group/child' path for nested layers | |
| new_name | No | New layer name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||