rms_search
Search local memory vaults and derived code semantically, returning inject/abstain decisions with ranked chunks for context injection; supports cross-project queries and token-bounded snippets.
Instructions
Search RMS Memory. Returns {decision: inject|abstain, reason, injected_ids, results}; trust an abstain. corpus: vault (default, Markdown notes), code (derived semantic code), all (rank-fused). projects: [keys] = read-only cross-project search (wins over project; vault/all needs cross_project_vault=true on every key, else an error). Content is bounded by max_chars; use snippet_chars + rms_read to save tokens
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of chunks to return. Default is 10. | |
| query | Yes | The semantic query string to search for. | |
| corpus | No | Corpus to search. Defaults to vault. | |
| project | No | Registered project key, used when the MCP client did not provide a workspace root. Ignored when `projects` is also set. | |
| projects | No | Explicit list of registered project keys for read-only federated search (max 8 after dedupe). Does not change the active bind. When set together with `project`, this list wins. Vault/all with len>1 requires cross_project_vault=true on every listed key. | |
| max_chars | No | Maximum total characters of injected content across results (default 2000). Truncates/drops weaker hits to stay within budget. | |
| min_score | No | Optional minimum relevance in 0..1 (distance and RRF normalized). If the best hit is weaker, rms_search abstains with an empty results list (fail-closed). | |
| snippet_chars | No | Cut each result's content to this many characters (token-saving first pass); then rms_read the winners with `heading` or `outline`. | |
| min_confidence | No | Optional minimum confidence threshold (0.0–1.0). Records with NULL confidence are always included. CAUTION: do NOT use high values (e.g. 0.9+) unless you need strict filtering. If zero results, retry without this parameter. | |
| pattern_status | No | Minimum status for hits from patterns/ notes. Default verified-in-runtime: unproven patterns are hidden. `implemented` also returns implemented ones; `proposed`/`all` returns everything (hits carry their pattern_status). Other notes are never filtered. | |
| include_content | No | Whether to include full chunk text in results. | |
| include_file_history | No | When true, attach the last 3 commits from the derived code_path git-history cache to each code hit (lazy catch-up). Not allowed together with projects: […] federation. Default false. | |
| include_graph_neighbors | No | When true, attach durable graph neighbors for each hit path. Not allowed together with projects: […] federation. Default false. |