move_node
Move a node to a new parent within a CherryTree document, ensuring safe writes through automatic rollback and byte-level audit.
Instructions
Move a node under a different parent.
Args: node_id: Node to move. new_parent_id: Destination parent (0 = top-level).
Returns: Confirmation message followed by byte-by-byte audit report. On XML parse failure, backup is restored automatically (ROLLBACK).
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": {
"node_id": "<node_id>"
},
"name": "move_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | ||
| new_parent_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |