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.
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) |