Paint: SVG path data
paint_pathDraw SVG path d data onto a named canvas layer to render curved or complex art, with fill, stroke, dashes, and even-odd fill control.
Instructions
Draw SVG path d data (M L H V C S Q T A Z, lowercase = relative) — the compact way for an agent to place curved or complex art. Supports fill, stroke, dashes, even-odd.
Target the canvas by name (created with paint_canvas) and optionally a layer index. Layers, filters and undo work the same for every drawing tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| d | Yes | Content of an SVG `d` attribute | |
| cap | No | round | |
| fill | No | A colour, or a gradient object {type, from, to, radius, colors|stops} | |
| blend | No | Blend mode for this stroke | normal |
| layer | No | Target layer index; defaults to the active layer (see paint_canvas). | |
| scale | No | Uniform scale around the origin | |
| canvas | Yes | Canvas name. Letters, digits, space, dot, dash, plus; the .png/.paint suffix may be included or omitted. | |
| dashes | No | ||
| stroke | No | A colour, or a gradient object {type, from, to, radius, colors|stops} | |
| opacity | No | 0..1 strength of this stroke | |
| preview | No | Image reply: auto/thumb = downscaled picture back into the result, full = unpixelated, none = text only | |
| even_odd | No | ||
| translate | No | Offset by [dx, dy] | |
| preview_size | No | Longest edge of the returned thumbnail | |
| stroke_width | No |