add_svg
Insert SVG elements as editable vector shapes in Krita, placing paths, shapes, text, gradients, and groups onto a chosen or new vector layer for direct vector editing.
Instructions
Add SVG elements as EDITABLE vector shapes: , , , , , ,
, gradients in , groups. Bare elements use canvas pixel coordinates. Goes onto layer
(a vectorlayer), the active vector layer, or a new vector layer called name.
No external references (href/url() only to #ids, images as data: URIs).
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": {
"svg": "<svg>"
},
"name": "add_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | ||
| name | No | Vector | |
| layer | No |