set_svg
Import an SVG string as a vector node in Figma; scripts and external resources are stripped automatically. Optionally set coordinates, name, or parent node.
Instructions
Import an SVG string as a vector node in Figma. The SVG is sanitized (scripts and external resources are stripped) before import. Max 500KB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svgString | Yes | SVG markup string (max 500KB). Must contain a valid <svg> element. | |
| x | No | X position for the imported SVG (default: 0) | |
| y | No | Y position for the imported SVG (default: 0) | |
| name | No | Optional name for the imported node | |
| parentId | No | Optional parent node ID to place the SVG into |