set_svg
Import SVG strings as vector nodes in Figma. SVG is sanitized to remove scripts and external resources for security. Max 500KB.
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 | Parent node ID. REQUIRED — server enforces this. Use page node ID for top-level elements. Get page IDs via get_pages tool. |