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.
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": "set_svg"
}
}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 |