krita_set_file_layer
Replace a file layer's linked PNG/JPEG source and scaling in Krita. Set a new path from a configured root and choose scaling method, with bicubic filtering.
Instructions
Replace a file layer's linked PNG/JPEG source and scaling, using a configured input root. Uses Bicubic filtering. Source must remain available; no guaranteed undo. Reuse operation_id on retries.
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>",
"root": "<root>",
"path": "<path>"
},
"name": "krita_set_file_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| root | Yes | ||
| node_id | Yes | ||
| document_id | Yes | ||
| instance_id | Yes | ||
| operation_id | Yes | ||
| scaling_method | No | None |