index_project
Scan project files to build a code graph: extracts definitions and resolves call/import relationships across Python, TypeScript, and JavaScript. Use force for a full rebuild or view indexing stats.
Instructions
(Re)index the project to build the code graph. Scans Python, TypeScript, and JavaScript files, extracts definitions, and resolves call/import relationships. Indexing also happens automatically on the first query; use this tool with force=true for a full rebuild, or to see indexing stats and the context-footprint reduction.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "index_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the project directory to index. If not provided, uses the project root configured at server startup. Example: '/path/to/my-project' | |
| force | No | Force full re-indexing even if files haven't changed. Set to true to rebuild the entire graph from scratch. |