Index workspace
graph_indexScans workspace .ts/.tsx/.js/.jsx/.md files and package manifests to build an atomic SQLite graph of files, symbols, headings, packages, imports, exports, and dependencies for codebase queries.
Instructions
Scan the workspace for .ts/.tsx/.js/.jsx/.md files and package.json manifests, and build the SQLite graph at .sqlite-graph/index.db (nodes: file, symbol, heading, package; edges: imports, exports, defines, links_to, depends_on). Safe to re-run: it rebuilds atomically.
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": "graph_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Workspace directory to index (defaults to the server root). | |
| force | No | Accepted for symmetry; indexing always rebuilds. | |
| ignore | No | Extra directory or file names to skip. | |
| maxFiles | No |