krita_set_diffusion_region
Link a diffusion prompt to an existing paint or group layer, or remove the linked region and its controls without deleting the artwork. Requires an active Generate document and a valid operation ID.
Instructions
Create/update a prompt region linked directly to an existing paint/group layer, or remove that region and its controls without deleting artwork. A prompt is required unless removing. Rejects ambiguous/multiple links. Requires active Generate document. Reuse operation_id; no guaranteed undo.
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>"
},
"name": "krita_set_diffusion_region"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remove | No | ||
| node_id | Yes | ||
| document_id | Yes | ||
| instance_id | Yes | ||
| operation_id | Yes | ||
| positive_prompt | No |