krita_paint_shape
Draw a rectangle or ellipse in a Krita document using explicit brush settings, with optional solid foreground fill. Operates on active pixel brush with no selection and restores brush context after finishing.
Instructions
Paint one native rectangle/ellipse with explicit brush settings and optional solid foreground fill. Requires active document, pixel brush and no selection. Restores brush context, waits for native completion. Reuse operation_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| fill | No | ||
| color | Yes | ||
| shape | Yes | ||
| width | Yes | ||
| height | Yes | ||
| node_id | Yes | ||
| opacity | Yes | ||
| size_px | Yes | ||
| preset_id | Yes | ||
| document_id | Yes | ||
| instance_id | Yes | ||
| operation_id | Yes |