krita_add_vector_shape
Add editable vector shapes (rectangle, ellipse, polygon, or cubic Bezier) to a Krita image with optional solid fill/stroke. Reuse operation_id on retries for reliable creation in an active view.
Instructions
Add an editable rectangle, ellipse, polygon or cubic Bezier shape in image pixels. Solid sRGB fill/stroke or none; active view required. Reinspect for a shape address. 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>",
"geometry": "<geometry>"
},
"name": "krita_add_vector_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | #000000 | |
| name | No | Vector shape | |
| stroke | No | none | |
| node_id | Yes | ||
| geometry | Yes | ||
| document_id | Yes | ||
| instance_id | Yes | ||
| operation_id | Yes | ||
| stroke_width | No |