index_codebase
Index codebases to build dependency graphs for Haskell and ReScript. Supports incremental updates of changed files, with option for full re-index.
Instructions
Index a codebase to build the dependency graph. Supports Haskell and ReScript. Performs incremental indexing (only changed files) unless force_full is set. For Haskell, optionally uses hie-reader binary for rich type info; falls back to source parsing.
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": {
"root_path": "<root_path>",
"name": "<name>",
"language": "<language>"
},
"name": "index_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root_path | Yes | Absolute path to the codebase root directory | |
| name | Yes | Name for this codebase (used in all subsequent queries) | |
| language | Yes | Programming language | |
| force_full | No | Force full re-index, ignoring mtime cache | |
| hie_dir | No | [Haskell only] Path to .hie files directory. If omitted, searches dist-newstyle/ |