insert_svg
Insert SVG markup into Figma, converting it to vector nodes. Create icons from SVG strings at specified positions and sizes.
Instructions
Insert an SVG string into Figma. Use this to create icons from SVG markup. The SVG will be converted to Figma vector nodes.
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": {
"svgString": "<svgString>"
},
"name": "insert_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position | |
| y | No | Y position | |
| name | No | Name for the inserted node | |
| size | No | Target size to scale the SVG to (both width and height) | |
| parentId | No | Parent node ID to insert into | |
| svgString | Yes | The SVG markup string to insert |