neighbors
Fetches surrounding memory entries for a given ID, supplying local context to better understand a specific memory within its immediate environment.
Instructions
Expand context AROUND a memory: the k memories most related to the one with id (compact snippets), by
recalling on that memory's own text and excluding itself. Use it for on-demand local context after recall
surfaces a relevant hit — a bounded expansion, not a whole-store dump. Returns [] if the id is unknown.
Honours the active project scope, like recall: expanding around a hit must not be a side door back into another project's memories.
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": {
"id": "<id>"
},
"name": "neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |