reindex_file
Update the code index after editing a source file by re-parsing it with libclang and updating its symbols in the SQLite+FTS5 index, using compiler flags from compile_commands.json.
Instructions
Not read-only — mutates the index. Re-parses a single source file with libclang using the exact compiler flags from compile_commands.json and updates its symbols in the SQLite+FTS5 index. The file must be in compile_commands.json. Use after editing a file to keep the index current without rebuilding; use reset_index to rebuild from scratch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to source file to re-parse. Must be in compile_commands.json. | |
| project_root | No | Project root. Auto-detected if omitted. |