Index workspace symbols
index_workspaceParse a directory into a persisted symbol index of definitions, references, and call sites, enabling cross-file navigation when run before lookup queries.
Instructions
Parse all supported source files under a directory into a persisted symbol index (definitions + identifier occurrences + call sites), backed by SQLite when available (JSON fallback). Run once before find_references / go_to_definition. Indexes are kept per root: indexing a new root adds a second index instead of replacing the existing one.
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": "<root>"
},
"name": "index_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | workspace root directory | |
| maxFiles | No | cap on files to index (default 20000 with SQLite store, 1500 with JSON fallback; hard max 100000 / 5000) |