insert_child
Place an existing child node into a parent container at a specified index, or append it if no index is provided; auto layout keeps it in flow unless ignored.
Instructions
Insert an existing child node at an index inside a parent container. Omit index to append at the end. Inside auto layout this keeps the child in the flow (layoutPositioning AUTO) unless ignoreAutoLayout is true.
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 |
|---|---|---|---|
| index | No | ||
| childId | Yes | ||
| parentId | Yes | ||
| ignoreAutoLayout | No | ||
| layoutSizingVertical | No | FIXED | HUG | FILL | |
| layoutSizingHorizontal | No | FIXED | HUG | FILL |