rms_code_search
Search the semantic code index for symbols and code segments by query, returning file, language, line range, and optional notes, history, or graph context; supports cross-project federation.
Instructions
Search only the derived semantic code index. Results include language, file, symbol, kind, line range, and segment index. The code index is optional, so an unindexed project returns an empty result list. Pass projects: [key, …] for read-only cross-project code federation (when both project and projects are set, projects wins); does not change the active bind.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results; default 10, maximum 100. | |
| query | Yes | The semantic code query. | |
| 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 code search (max 8 after dedupe). Does not change the active bind. When set together with `project`, this list wins. | |
| include_notes | No | Attach vault notes (decisions, patterns) that mention the hit's file or symbol, with `code_changed_since_note` when the code is newer. Default true; not used with projects: […]. | |
| include_content | No | Whether to include indexed code content; default true. | |
| include_file_history | No | When true, attach the last 3 commits from the derived code_path git-history cache to each code hit. 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. |