Skip to content

Commit 1f16d2e

Browse files
phernandezclaude
andcommitted
docs: add insert_before/after_section to edit_note docs
New edit_note operations from basic-memory 0b0c072f. Updates What's New and MCP Tools Reference with the full operation list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c12040f commit 1f16d2e

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

content/2.whats-new/0.v0.19.0.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,16 @@ Your notes are now protected from accidental overwriting. If a note already exis
138138

139139
---
140140

141+
## Smarter Note Editing
142+
143+
`edit_note` gains two new operations: `insert_before_section` and `insert_after_section`. These let your AI insert content relative to a section heading without replacing what's already there.
144+
145+
For example, if your AI needs to add a new section before "## Relations" or append context after "## Observations," these operations handle it cleanly — preserving existing content and maintaining proper spacing.
146+
147+
The full set of `edit_note` operations is now: `append`, `prepend`, `find_replace`, `replace_section`, `insert_before_section`, and `insert_after_section`.
148+
149+
---
150+
141151
## JSON Output Mode
142152

143153
All tools now support a structured JSON output format for developers building integrations or pipelines. The default human-readable text output is unchanged.

content/8.reference/2.mcp-tools-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ Edit an existing note incrementally.
6161
| Parameter | Type | Required | Notes |
6262
|---|---|---|---|
6363
| `identifier` | string | Yes | Exact note identifier |
64-
| `operation` | string | Yes | `append`, `prepend`, `find_replace`, `replace_section` |
64+
| `operation` | string | Yes | `append`, `prepend`, `find_replace`, `replace_section`, `insert_before_section`, `insert_after_section` |
6565
| `content` | string | Yes | New content |
66-
| `section` | string | Conditional | Required for `replace_section` |
66+
| `section` | string | Conditional | Required for `replace_section`, `insert_before_section`, `insert_after_section` |
6767
| `find_text` | string | Conditional | Required for `find_replace` |
6868
| `expected_replacements` | integer | No | Default `1` |
6969

0 commit comments

Comments
 (0)