project_map
Generate a compact token-budgeted map of a codebase before exploring it, showing files, sizes, and optional symbols or line ranges to know which directories to zoom into.
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. The map fits a token budget: on a large project it says which directories to zoom into.
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". scope: "main" (leave tests out, default), "test" or "all".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "project_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| scope | No | main | |
| detail | No | files | |
| subpath | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |