Move a note section
move_note_sectionMove an exact H2-H6 section subtree under an existing heading's final child, previewing changes by default and committing only with confirmation while preserving text and frontmatter.
Instructions
Use this to preview an exact single-note H2-H6 subtree move to an existing heading's final child position. Both headings must exist; no releveling. Requires expected_hash. Default confirm=false returns selection coordinates and before/projected hashes without writing; confirm=true commits with durable history and index reconciliation. Preserves all text and frontmatter bytes; mixed EOLs, unsafe boundaries and invalid child hierarchy are refused. AST selectors support ATX/Setext and ignore fences. Duplicate titles require the respective level and 1-based occurrence. Use a stable request_id when committing for durable replay receipts.
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": {
"rel_path": "<rel_path>",
"heading": "<heading>",
"destination_heading": "<destination_heading>",
"expected_hash": "<expected_hash>"
},
"name": "move_note_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| heading | Yes | ||
| rel_path | Yes | ||
| request_id | No | ||
| expected_hash | Yes | ||
| heading_level | No | ||
| destination_level | No | ||
| heading_occurrence | No | ||
| destination_heading | Yes | ||
| destination_occurrence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indexed | No | ||
| rel_path | No | ||
| replayed | No | ||
| committed | No | ||
| selection | No | ||
| before_hash | No | ||
| content_hash | No | ||
| operation_id | No | ||
| projected_hash | No |