krita_open_document
Opens a bounded local KRA, PNG, or JPEG file from a configured input root and attaches an active view in Krita. Use a root-relative path and reuse operation_id to avoid duplicate opens after timeout.
Instructions
Open a bounded local KRA, PNG or JPEG file from a configured input root and attach an active view. Path must be relative to the named root. Reuse operation_id to avoid duplicate opens after a timeout.
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>",
"root": "<root>",
"path": "<path>"
},
"name": "krita_open_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| root | Yes | ||
| instance_id | Yes | ||
| operation_id | Yes |