create_node_from_svg
Convert SVG markup into editable Figma vector nodes, replacing raster PNG icons with scalable vectors wrapped in a frame.
Instructions
Create vector nodes from SVG markup (e.g. to replace raster PNG icons with editable vectors). Figma wraps the result in a FRAME containing the vector paths.
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": "create_node_from_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Optional X position (relative to the parent) | |
| y | No | Optional Y position (relative to the parent) | |
| svg | Yes | Full SVG markup, starting with an <svg> element (include viewBox/width/height for correct sizing) | |
| name | No | Optional name for the created node | |
| parentId | No | Optional parent node ID (must support children, e.g. a frame, group or section; default: current page) |