index_file
Index a file into the DocGraph knowledge graph, allowing AI agents to retrieve its content through hybrid full-text and vector search.
Instructions
Index a specific file
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": {
"path": "<path>"
},
"name": "index_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file | |
| projectPath | No | Absolute path to the indexed project (defaults to the running server’s project root). Use it to query a different project in the same session. | /app |