create_svg
Create vector layers in Figma from SVG markup—lines, arrows, paths, and icons—positioned at a given X/Y, like Figma's native SVG import.
Instructions
Create vector layers from SVG markup, like Figma's SVG import: lines, arrows, paths, icons
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>",
"x": "<x>",
"y": "<y>"
},
"name": "create_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position | |
| y | Yes | Y position | |
| svg | Yes | A complete <svg> document | |
| name | No | Layer name | |
| parentId | No | Parent node ID (default: current page) |