krita_get_layer_preview
Retrieve an inline PNG of a specific layer or group in a Krita document, showing only that layer's content within canvas bounds so you can inspect it independently.
Instructions
Return an inline PNG of the explicit layer/group projection within canvas bounds. Requires RGBA/U8/standard sRGB; preserves visibility and active layer. Other layers are excluded.
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>",
"document_id": "<document_id>",
"node_id": "<node_id>"
},
"name": "krita_get_layer_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | ||
| max_edge | No | ||
| document_id | Yes | ||
| instance_id | Yes |