codegraph_index
Index files or directories to build a code graph with symbols, call relationships, and imports. Use for explicit re-indexing or custom paths; search auto-indexes on first use.
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#. Note: codegraph_search auto-indexes on first use, so you only need this for explicit re-indexing or custom paths.
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. |