move_subtree
Relocate a thought subtree to a new parent within the same tree. Checks cycles and depth, with optional dry-run to preview changes safely.
Instructions
Move a subtree to a new parent within the same tree. Performs cycle detection, depth validation, and supports dry-run mode for safe preview.
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": {
"treeId": "<treeId>",
"subtreeRootId": "<subtreeRootId>",
"newParentId": "<newParentId>"
},
"name": "move_subtree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true, preview the move without making changes (default: false) | |
| treeId | Yes | The ID of the tree | |
| newParentId | Yes | The ID of the new parent thought | |
| subtreeRootId | Yes | The ID of the subtree root to move |