krita_transform_canvas
Crop, resize, scale, rotate, or flip the entire canvas in a live Krita document, with dimensions bounded to 8192 pixels per side or 16 megapixels.
Instructions
Transform the entire document, bounded to 8192 per side/16 MP. Crop/resize require x,y,width,height; resize uses the new canvas rectangle in old image coordinates. Scale requires width,height and optional filter. Rotate requires degrees; flip requires axis and active document. Rejects unrelated fields and locked/animated nodes. Reuse operation_id.
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>",
"action": "<action>"
},
"name": "krita_transform_canvas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| axis | No | ||
| width | No | ||
| action | Yes | ||
| filter | No | ||
| height | No | ||
| degrees | No | ||
| document_id | Yes | ||
| instance_id | Yes | ||
| operation_id | Yes |