Skip to content

Commit 54dfa08

Browse files
authored
Update name of function search_notes in error output (#92)
Signed-off-by: Amadeusz Wieczorek <git@amadeusw.com>
1 parent 9433065 commit 54dfa08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/basic_memory/mcp/tools/read_note.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def format_not_found_message(identifier: str) -> str:
111111
## Search Instead
112112
Try searching for related content:
113113
```
114-
search(query="{identifier}")
114+
search_notes(query="{identifier}")
115115
```
116116
117117
## Recent Activity
@@ -172,7 +172,7 @@ def format_related_results(identifier: str, results) -> str:
172172
## Search For More Results
173173
To see more related content:
174174
```
175-
search(query="{identifier}")
175+
search_notes(query="{identifier}")
176176
```
177177
178178
## Create New Note

tests/mcp/test_tool_read_note.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ async def test_read_note_text_search_fallback(mock_call_get, mock_search):
267267
assert "Related Note 1" in result
268268
assert "Related Note 2" in result
269269
assert 'read_note("notes/related-note-1")' in result
270-
assert "search(query=" in result
270+
assert "search_notes(query=" in result
271271
assert "write_note(" in result
272272

273273

0 commit comments

Comments
 (0)