index_graph
Rebuild the code graph for an already-indexed source when graph-backed lookups return empty. Re-extracts entities and returns a job_id to poll for completion.
Instructions
Build (or rebuild) the Neo4j code graph for an already-indexed source — pass 2 of two-pass indexing. Use this when chunks/vectors exist but graph-backed tools (find_definition, find_callers, find_references, graph_explore) return empty, or after a chunks-only index (skip_graph=true). Drops the source's existing graph entities and re-extracts; safe to re-run. Returns immediately with a job_id; poll get_index_job. Get source_id from list_indexed_sources.
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": {
"source_id": "<source_id>"
},
"name": "index_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_id | Yes |