code_map
Locate symbol definitions in your codebase by searching by name or file path. Find where classes, functions, and interfaces are defined.
Instructions
Look up where symbols (classes, functions, interfaces) are defined in the codebase.
USE INSTEAD OF grepping when you need to find where something lives. Requires hivelore index code to have been run (done automatically in autopilot mode).
TIP: include symbols in get_briefing directly for auto-lookup at session start.
PARAMETERS: symbol — name or partial name to search (e.g. 'PaymentService') file — filter by file path substring max_files — cap on results (default 40)
RETURNS: { available: bool, files: [{ path, exports: [{ name, kind, line, description }] }] } If available: false → run hivelore index code first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Filter to files whose path contains this substring | |
| paths | No | Filter to files under any of these path prefixes (e.g. ['packages/mcp/src/tools/', 'src/auth/']). OR-joined with `file` substring; useful to get a focused view of one module. | |
| symbol | No | Filter to files exporting a symbol whose name contains this substring | |
| max_files | No | Cap on returned files (hard limit, applied after token budget) | |
| max_tokens | No | Approximate token budget for the response. When the matching set exceeds it, files are ranked by export density (exports per LOC) and the highest-signal ones are kept first. Omit to disable budgeting (legacy behavior). |