cortex_query_memory
Retrieve relevant code context from a hybrid memory engine. Query returns synthesized, concise context to reduce token usage and prevent amnesia.
Instructions
Hybrid 4-tier retrieval returning synthesized, lean context.
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": "cortex_query_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_tokens | No | ||
| session_id | No | ||
| target_entity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |