Search NC memory
search_memoriesAd-hoc semantic search of the NC memory store over the hybrid recall path (vector + KG
entity-pivot + ACL). Scoped to whatever is asked for, rather than to the session as a whole,
so it reaches material the session's initial recall did not return.
For higher-fidelity retrieval, pass user_query_full = the user's complete verbatim request;
search then matches on it instead of the shorter query.
Returns truncated summaries and memory_ids; get_memory_detail resolves one to full content.
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": "search_memories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query (fallback when user_query_full is absent) | |
| topics | No | Optional comma-separated distinct topics; 2+ topics fan out into a per-topic grouped search. | |
| max_results | No | Max results to return (default 5, max 20) | |
| use_full_query | No | Whether to search on user_query_full when present. Defaults true. | |
| conversation_id | No | ||
| user_query_full | No | The user's COMPLETE, untruncated request, verbatim. When provided, search matches on this instead of `query`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Present when the call did not succeed. An object carries `type` and `message` (and often a `timestamp`); Utils.formatError bodies set it to `true` with the reason in the top-level `message`. | |
| query | No | ||
| message | No | ||
| success | Yes | ||
| fanned_out | No | ||
| provenance | No | Per-source result counts for the hybrid strategy. | |
| request_id | No | ||
| user_facts | No | The caller's stored user facts, injected on the first recall per (conversation_id, program_tool). Absent on later calls in the same conversation. | |
| topic_count | No | ||
| total_found | No | Exactly the length of data.memories after filtering and truncation. | |
| persona_hint | No | Suggests a get_persona_definition call when a persona is relevant; null otherwise. | |
| execution_time | No | ||
| hybrid_strategy | No | Which retrieval strategy answered (e.g. "vector_kg_hybrid"). | |
| kg_contribution | No | Knowledge-graph contribution summary when the KG took part. | |
| vector_results_count | No | ||
| user_facts_updated_at | No | ||
| knowledge_results_count | No |