spec_nav_map
Search codebases with case-insensitive regex, tag each hit by enclosing function, and page results completely. Narrow by service or file; summary view groups hits by function.
Instructions
Regex search across every project under the root (code, then config/docs/SQL), each code hit tagged with the function it sits in. When the service or file is known, narrow with services/file. Paged, never silently cut: the header says COMPLETE or gives a cursor. Default view: every matching line; view: "summary" groups them by function and says it does not show every line. Long lines end with ….
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Only files whose path contains this, matches it as a * glob, or as a regex (/…/, or a value with | ( ^ $ \, e.g. "services/(order|payment)"). | |
| view | No | "detail" (default): every matching line. "summary": hits grouped by function, with counts and line numbers; a short result is shown in full. | |
| cursor | No | The nextCursor from the previous page. Repeat the other arguments unchanged. | |
| context | No | Lines shown before and after each hit, like grep -C (default 0; above 10 is read as 10). | |
| pattern | Yes | Regex, case-insensitive. E.g. "handl(e|ing)_?fee|handling_charge" | |
| pageSize | No | Max hits per page (summary: max functions); pages are also cut at ~30k characters. | |
| services | No | Services/directories relative to the root (e.g. "services/api"); "." is the root project's own files. Default: the whole repo. | |
| includeText | No | Also search config, docs and other text files (default true). | |
| includeComments | No | Include comment and import lines (skipped by default as noise) |