reindex_codebase
Scan and index a codebase directory to build a knowledge graph for code analysis and navigation. Used when codebase changes significantly.
Instructions
Scans and indexes the specified directory to build the knowledge graph. This is a heavy operation and should be called when the codebase changes significantly. Database will be created in {root_path}/.kgraph/
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": "reindex_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |