search_memory
Retrieve relevance-ranked project memory blocks by query to pull targeted prior decisions, conventions, or notes for a task without loading the entire memory file.
Instructions
Relevance-ranked memory retrieval. Returns the memory blocks most relevant
to `query` (scored by keyword overlap) instead of the head of memory.md.
Use this to pull targeted prior decisions/conventions/notes for the current
task without loading the whole memory file.
Args:
query: Free-form text describing what you're looking for.
n_results: Maximum number of memory blocks to return (default 5).
Returns:
Markdown with the top matching memory blocks, or a hint if none match.
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": {
"query": "<query>"
},
"name": "search_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| n_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |