krita_copy_layer
Copy a paint layer to another Krita document, optionally placing it above a specific layer or in a desired folder. Use the operation ID to avoid duplicate copies and get the new node handle.
Instructions
Copy a supported paint layer into an explicit destination document. Omitted parent means document root; above_node_id selects a sibling to insert above. Returns the new node handle. No guaranteed undo transaction. Reuse operation_id to avoid duplicate copies.
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": {
"instance_id": "<instance_id>",
"operation_id": "<operation_id>",
"document_id": "<document_id>",
"node_id": "<node_id>",
"destination_document_id": "<destination_document_id>",
"name": "<name>"
},
"name": "krita_copy_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| node_id | Yes | ||
| document_id | Yes | ||
| instance_id | Yes | ||
| operation_id | Yes | ||
| above_node_id | No | ||
| parent_node_id | No | ||
| destination_document_id | Yes |