Retrieves memories that are contextually relevant to a code location or query. Unlike stellarion_memory_search which searches by explicit query, this tool infers what's relevant based on the file you're working in, the function you're looking at, or a combination of both with a query.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
uri | string | no | — | File path to find relevant memories for |
line | number | no | — | Line number to narrow context to a specific function |
query | string | no | — | Additional query to refine relevance |
limit | number | no | 5 | Maximum number of results |
Natural language:
Are there any notes or memories about src/auth/jwt.ts?
MCP call:
{
"tool": "stellarion_memory_context",
"arguments": {
"uri": "src/auth/jwt.ts"
}
}
Natural language:
Any prior context about the function at line 42 of src/db/connection.rs?
MCP call:
{
"tool": "stellarion_memory_context",
"arguments": {
"uri": "src/db/connection.rs",
"line": 42
}
}
Natural language:
Any known issues with error handling in src/api/handlers.py?
MCP call:
{
"tool": "stellarion_memory_context",
"arguments": {
"uri": "src/api/handlers.py",
"query": "error handling issues"
}
}
Returns contextually relevant memories, ranked by relevance:
uri and query are provided, the tool combines file-level context with semantic search for the best results.stellarion_memory_search instead.