add_path
Add an SVG path to a canvas by providing path data and customizing stroke, fill, opacity, and width.
Instructions
Add an SVG path (d attribute) to a canvas.
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": {
"canvasId": "<canvasId>",
"d": "<d>"
},
"name": "add_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| d | Yes | SVG path data | |
| fill | No | none | |
| stroke | No | #000000 | |
| opacity | No | ||
| canvasId | Yes | ||
| strokeWidth | No |