insert_child
Insert a child node into a parent node in Figma. Provide the parent ID and child ID, with an optional index to set the insertion position.
Instructions
Insert a child node inside a parent node in Figma
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": {
"parentId": "<parentId>",
"childId": "<childId>"
},
"name": "insert_child"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parentId | Yes | ID of the parent node where the child will be inserted | |
| childId | Yes | ID of the child node to insert | |
| index | No | Optional index where to insert the child (if not specified, it will be added at the end) |