reindex_file
Force re-index one file in the semantic search database by deleting old chunks and re-embedding its content. Use when a file changed or parsing was updated.
Instructions
Force re-index a single file, ignoring the content hash cache.
Deletes existing chunks for this file, re-parses, re-chunks, re-embeds, and stores new chunks. Useful when you know a file has changed or when parsing was updated.
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": {
"file_path": "<file_path>"
},
"name": "reindex_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_path | No | Path to the LanceDB database. Uses LANCEDB_PATH env var if omitted. | |
| file_path | Yes | Absolute path to the file to re-index |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||