rebuild_all_graphs
Rebuilds the Neo4j code graph for all indexed sources to repair empty-graph issues, enqueueing a graph job per source. Use when definitions or graph lookups return empty results.
Instructions
Bulk-build the Neo4j code graph for indexed sources. Lists sources, then enqueues a graph job (POST /index-graph) for each. Use this once to repair a bulk import where chunks were indexed but the graph was never built (so find_definition/graph tools are globally empty). Graph extraction is idempotent (drops + rebuilds), so rebuilding a healthy source is harmless. Defaults to rebuilding ALL sources — the graph_indexed flag is NOT a reliable signal for the empty-graph bug (jobs marked themselves indexed while writing nothing), so only_missing=true (which filters to graph_indexed=false) will skip the very sources that need repair. Returns one entry per source with its job_id (or error). Jobs run through the shared queue — this kicks them off and returns; poll list_index_jobs(status='running') to track.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| only_missing | No |