create_svg_icon
Render and insert scalable SVG vector graphics onto the Figma canvas with customizable position, size, fill color, and parent frame.
Instructions
Render and insert scalable SVG vector graphics (icons, logos, custom vector shapes) onto the canvas
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>"
},
"name": "create_svg_icon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X coordinate on canvas | |
| y | No | Y coordinate on canvas | |
| svg | Yes | Raw SVG XML markup string | |
| fill | No | Optional hex color to tint vector elements (e.g. '#3B82F6') | |
| name | No | Optional name for the created SVG frame/icon | |
| width | No | Optional target width in pixels | |
| height | No | Optional target height in pixels | |
| parentId | No | Optional parent frame ID to insert into |