Search Memories
memory-searchSearch long-term memories to retrieve relevant facts, preferences, decisions, and rules using natural-language queries and filters. Return JSON or formatted text for prompt injection.
Instructions
Search long-term memories. Returns relevant facts, preferences, decisions, and rules. Set format=true to get pre-formatted output for prompt injection.
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": "memory-search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Filter by exact tag match. Consumer-defined (e.g. "cortex_type:action_item"). | |
| query | Yes | Natural language search query. | |
| topic | No | Filter by topic. | |
| domain | No | Filter by domain/project. | |
| format | No | If true, returns formatted text grouped by cognitive layer instead of JSON. | |
| maxResults | No | Max results (default: 10, max: 500). | |
| graphRerank | No | Graph-aware rerank mode. Default is `"lite"`: 1-hop expansion + score boost (HippoRAG-lite, fast, self-no-ops without graph data). `false` = pure similarity ranking. `"ppr"` = full Personalized PageRank walk from query-seed entities (Gutiérrez et al, NeurIPS 2024 — more accurate on multi-hop QA at modest extra cost). PPR falls back to lite when the graph has < 4 entities or > 500 nodes. | |
| budgetTokens | No | Token budget for the returned set. Greedy fill by score × importance, stops before exceeding the budget. Alternative to maxResults for context-slot callers. | |
| cognitiveLoad | No | From Persona. "high" returns top 3 only. |