index_file
Parse, chunk, embed, and store a code file in vectors and entities to enable GraphRAG search. Returns a job_id for tracking; set force=true to re-index unchanged files.
Instructions
Index a single code file. Parses with tree-sitter, chunks with chonkie, embeds via TEI, and stores vectors in Milvus + entities in Neo4j. Returns immediately with a job_id; poll get_index_job to track progress. Set force=true to re-index even if this file is already indexed and unchanged (otherwise the call no-ops to the prior job).
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": "index_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| file_path | Yes |