reorder_children
Move a child node to a new index within its parent's children array to change its order. Specify the parent and node IDs along with the target position.
Instructions
Change the order of a child node within its parent's children array by moving it to a new index
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>",
"nodeId": "<nodeId>",
"newIndex": "<newIndex>"
},
"name": "reorder_children"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the child node to reorder (must be a direct child of parentId) | |
| newIndex | Yes | The new index position for the child within the parent's children | |
| parentId | Yes | The ID of the parent node |