get_codebase_map
Map repository structure via AST symbol outline of classes, functions, and exports to save 70-85% tokens on coding tasks.
Instructions
Extracts a token-efficient AST symbol outline map (classes, interfaces, functions, methods, exported types) across the repository.
Behavior: Read-only operation. Zero file modifications, zero persistent side-effects, and zero network calls. Returns structured Markdown.
When to use: Call this at the start of a coding task to inspect repository architecture, directory structure, and symbol hierarchies with 70%~85% token savings.
When NOT to use: Do NOT use this if you need full function implementations (use read_file_content instead), or if you already know the target task and want only relevant files (use extract_relevant_context instead).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootDir | No | Path to repository root directory. Defaults to current working directory ("."). Respects .gitignore and built-in binary exclusions. |