index
Manage the project's code index lifecycle: check status, build or sync on-disk indexes, query the AST cache, and materialize a knowledge graph. Pick read-only or write capability via the action parameter.
Instructions
Code-intelligence (codegraph-compatible) index lifecycle hub. Covers codegraph_status, codegraph_full_index, codegraph_autoindex, codegraph_incremental_sync, AST cache query, and whole-project knowledge graph materialization in one tool. Pick a capability via action:
READ-ONLY:
action=status — check codegraph index health without writing (codegraph_status equivalent). Returns node/edge counts plus an owner-issued snapshot_id, source/index fingerprints, source_generation, and exact completeness enum. Params: access_mode=read_existing.
action=cache — query the raw AST cache for symbols, types, and references (read-only modes: search, lookup, stats, changes, watch_status). NOTE: this action ALSO exposes mutating cache modes via
mode— index, sync, invalidate, watch_start, watch_stop (andforce=trueto force a reindex). Params: mode (default search/stats), query, file_path, kind, limit, force.action=schema — index statistics: languages, symbol count, edge count, index age, available pulse fields, Hyphae pseudo-classes. Call before nav action=pulse. Params: (none).
WRITES ON-DISK INDEX:
action=build — full (re)build of the project index. Slow; use when index is absent or corrupt. Params: force.
action=full — force a complete full reindex (codegraph_full_index equivalent). Params: (none).
action=auto — enable/configure background auto-indexing (codegraph_autoindex equivalent). Params: enable, watch.
action=sync — run one incremental sync pass (fast; use after editing files, codegraph_incremental_sync equivalent). Params: paths.
action=knowledge — build/update/status for the code+docs knowledge graph sidecar and optional LadybugDB mirror. Params: mode, backend, max_files, max_nodes, max_edges, include_docs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Action sub-mode (e.g. summary|cycles). | |
| limit | No | Max results. | |
| query | No | Search query/pattern. | |
| scope | No | Action discriminator (e.g. point|graph). | |
| action | Yes | Which capability to invoke. One of: auto, build, cache, full, knowledge, schema, status, sync | |
| symbol | No | Symbol/function name. | |
| language | No | Language hint (usually auto). | |
| file_path | No | Target file path. | |
| access_mode | No | Status-only read mode; never creates or migrates an index. | read_existing |
| function_name | No | Function name (alias of symbol). | |
| output_format | No | Output format: JSON. |