project_map
Generate a compact codebase map of files with token sizes and optional symbols before exploring, so agents avoid listing directories or opening files.
Instructions
Compact map of a codebase: files with their size in tokens, optionally their symbols and line ranges.
Call it before exploring a project instead of listing directories and opening files. Indexes the project on first use and resyncs changed files by checksum on every call.
Args: path: Project root directory (absolute). detail: "files" (cheapest) or "symbols" (adds methods/classes with first-last line). subpath: Restrict to a directory inside the project, e.g. "src/main".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| detail | No | files | |
| subpath | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |