krita_transform_layer
Resample a raster paint layer by scaling, rotating clockwise around a chosen pixel pivot, and translating it. Use this to directly modify pixel geometry.
Instructions
Resample one supported RGBA/U8/sRGB paint layer: scale then clockwise rotate around an explicit image-pixel pivot, then translate. This rewrites raster pixels with no guaranteed undo transaction; it is not a native transform mask. 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>",
"node_id": "<node_id>",
"pivot": "<pivot>"
},
"name": "krita_transform_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pivot | Yes | ||
| node_id | Yes | ||
| scale_x | No | ||
| scale_y | No | ||
| document_id | Yes | ||
| instance_id | Yes | ||
| translate_x | No | ||
| translate_y | No | ||
| operation_id | Yes | ||
| rotation_degrees | No |