memo_search_trace
Investigate search ranking and recall misses by retrieving memories with trace diagnostics that explain candidate selection and scoring at each stage.
Instructions
Search memories and include retrieval trace diagnostics.
Read-only. Debug variant of memo_search: use it when investigating ranking, filters, or recall misses rather than for normal lookup. Returns the same style of hits as memo_search plus trace metadata that explains how candidates were selected and scored at each stage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Retrieval mode: 'hybrid' (RRF fusion of vector + BM25, default), 'vec' (semantic only), 'bm25' (keyword FTS5), 'exact' (strict-AND keyword with tag/title boost), or 'fuzzy' (typo-tolerant keyword). Unrecognized values behave as 'hybrid'. | hybrid |
| type | No | Restrict retrieval to one memory type (e.g. 'decision', 'fact'); None searches every type. | |
| limit | No | Maximum hits to return (clamped to 1-500). | |
| query | Yes | Search text; empty or whitespace-only returns no hits. | |
| source | No | Calling layer for consult attribution (e.g. 'claude-code', 'codex'); empty falls back to client info. | |
| body_chars | No | Character cap per hit body; longer bodies are truncated with body_truncated=true. Negative disables truncation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||