Map the codebase
code_file_mapRecursively maps a project's code files, showing total counts, bytes, extensions, and split candidates for oversized modules. Optionally lists top-level exported symbols in JS/TS files for navigation.
Instructions
Recursively map the project's codeLocation: total file count + bytes, counts by extension, and the files that exceed the split thresholds (lines/bytes) as split candidates (worst first) — useful for spotting oversized modules to decompose. With symbols:true, also returns a per-file list of top-level exported functions/classes/consts for JS/TS files (regex-based, capped per file) — a lightweight symbol map for navigation.
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": {
"project": "<project>"
},
"name": "code_file_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | ||
| symbols | No | Also extract top-level exported symbols per JS/TS file. | |
| splitBytes | No | ||
| splitLines | No |