map
Generate a per-file structural overview of a directory tree in one call — listing classes, functions, and errors — so you can locate relevant code in an unfamiliar codebase.
Instructions
Per-file structural overview of a whole directory tree in one call — the orientation tool for an unfamiliar codebase. Walks the directory recursively (skipping node_modules, dist, build, venv, pycache, hidden dirs and other build/dependency dirs), parses every supported file, and returns JSON {path, files[{path, language, totalLines, classes[], functions[], hasErrors?, error?}], totalSupportedFiles, filesParsed, truncated}. Caps: 200 files per call (truncated:true when more exist — map subdirectories individually to go deeper), 100 names per list per file. Unparseable files appear with an inline error instead of vanishing. Languages: TS/TSX/JS/JSX/Python; other files are not counted. Use before overview/functions to decide which files matter. codelens is a navigation map: use it to LOCATE code, then Read the actual source before judging or modifying it. A signature is not the body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory to map, relative to the server's working directory (or absolute inside it). Use "." for the whole workspace. |