replace_section
Replace a note section's body by heading path while preserving the heading and surrounding content, using the prior get_section output and required version for safe, atomic edits.
Instructions
Replace the body under a unique hierarchy of heading titles, preserving its heading and all outside Tiptap nodes. Use get_section first. oldText is the exact returned Markdown section body, including nested subsections. Requires current expectedVersion. Ambiguous paths fail atomically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| noteId | Yes | ||
| oldText | Yes | ||
| headingPath | Yes | ||
| idempotencyKey | No | ||
| expectedVersion | Yes |