krita_edit_vector_shape
Scale, rotate, and translate a specific vector path in a Krita document using an unchanged layer snapshot for reference.
Instructions
Edit one top-level path shape using an unchanged layer snapshot. Scale then clockwise rotate about image origin then translate in pixels, composed after its existing transform. Groups/text/protected shapes rejected. Active view required; no guaranteed undo. 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>",
"node_id": "<node_id>",
"snapshot_id": "<snapshot_id>",
"shape_index": "<shape_index>"
},
"name": "krita_edit_vector_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| node_id | Yes | ||
| scale_x | No | ||
| scale_y | No | ||
| visible | No | ||
| z_index | No | ||
| document_id | Yes | ||
| instance_id | Yes | ||
| shape_index | Yes | ||
| snapshot_id | Yes | ||
| translate_x | No | ||
| translate_y | No | ||
| operation_id | Yes | ||
| rotation_degrees | No |