codegraph_index
Index source code to build a searchable graph of symbols, calls, and imports. Prepares project structure for code analysis and impact queries.
Instructions
Index a file or directory into the code graph. Extracts symbols (functions, classes, methods), call relationships, and imports. Supports TypeScript, JavaScript, Python, Go, Rust, Java, C, C++, C#. Run this before using codegraph_search, codegraph_callers, codegraph_callees, or codegraph_impact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file or directory path to index. For directories, all supported files are indexed recursively. | |
| team_id | No | The team ID for isolation. | |
| max_files | No | Maximum number of files to index (for directory mode). | |
| repo_path | No | The root path of the repository. Used to compute relative file paths. Defaults to the path argument. |