krita_import_image_layer
Import a PNG or JPEG image from a configured input root into a Krita document as a new paint layer at a precise pixel offset.
Instructions
Import a bounded PNG or JPEG under a configured input root as a new paint layer at an explicit pixel offset. Image must fit the supported RGBA/U8/sRGB destination; no guaranteed undo transaction. 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>",
"root": "<root>",
"path": "<path>",
"name": "<name>"
},
"name": "krita_import_image_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | Yes | ||
| path | Yes | ||
| root | Yes | ||
| document_id | Yes | ||
| instance_id | Yes | ||
| operation_id | Yes |