figma_create_from_svg
Create a Figma vector node directly from SVG markup. Solves the need for complex shapes like charts, icons, and curves that basic primitives cannot achieve.
Instructions
Create a vector node from raw SVG markup. Use this for charts, icons, curves, and any complex shapes that can't be made with rectangles/ellipses/lines. Supports , , , gradients, and all SVG elements.
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": "figma_create_from_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| svg | Yes | SVG markup string, e.g. '<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 C25,0 75,100 100,50" stroke="green" fill="none"/></svg>' | |
| name | No | SVG | |
| width | No | Resize to this width (preserves aspect ratio if only width given) | |
| height | No | Resize to this height (preserves aspect ratio if only height given) | |
| parentId | No |