Create Node from SVG
create_svgInsert SVG markup as a new node into a Figma design, specifying parent and position.
Instructions
Create a node from an SVG markup string.
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>",
"parentId": "<parentId>",
"parentNodeName": "<parentNodeName>"
},
"name": "create_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position | |
| y | No | Y position | |
| svg | Yes | The SVG XML string | |
| name | No | Optional non-empty name for the new node | |
| parentId | Yes | Parent ID to append to | |
| parentNodeName | Yes | The parent node's current exact name, passed back verbatim from `node_info`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of the created node | |
| name | No | Name of the created node | |
| error | No | ||
| parentId | No | ID of the parent the node was placed into — confirm containment without a follow-up read |