relevant_memories
Retrieve memories whose path patterns match the given file, surfacing context to load before editing.
Instructions
Return memories whose frontmatter 'paths:' globs match the given file.
Memories can be auto-attached to specific parts of a project by adding a 'paths:' field to their frontmatter (e.g. 'paths: internal/auth/**, cmd/server/*.go'). This tool surfaces only the memories relevant to a given file — much smaller than list_memories when many memories exist.
Call this when starting work on a file to discover context the LLM should load before editing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "relevant_memories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path. Either absolute or relative to the workspace. | |
| workspace | No | Absolute workspace path. Defaults to the daemon's resolved workspace. |