duplicate_layer_tree
Copy a complete layer hierarchy into a new parent layer in an open document, preserving item order, clipping groups, and child layer state; blocks duplicate target parents.
Instructions
Copy a complete layer hierarchy into a new parent layer in the specified open document, preserving item order, clipping groups and child layer state. Native document coordinates in points. Refuses a duplicate target parent.
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": {
"document_path": "<document_path>",
"source_layer_paths": "<source_layer_paths>",
"target_parent_name": "<target_parent_name>"
},
"name": "duplicate_layer_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset_x | No | ||
| offset_y | No | ||
| document_path | Yes | ||
| source_layer_paths | Yes | ||
| target_parent_name | Yes |