Patch note section
patch_note_sectionRewrite an outdated section of a Markdown note in place, replacing content under a given heading while preserving other sections and prior history, with atomic writes.
Instructions
Use this to rewrite an outdated section in place when the topic already has a note. Replace the content under one existing Markdown heading. Pass the note's current content_hash as expected_hash for CAS. The operation preserves the heading line and non-target sections, stores exact prior history, and writes atomically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| heading | Yes | ||
| rel_path | Yes | ||
| new_content | Yes | ||
| expected_hash | No | ||
| heading_level | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indexed | Yes | ||
| patched | Yes | ||
| content_hash | Yes |