add_file
Index a specific file into an existing project and persist it in config.yaml so it is re-indexed automatically on future runs.
Instructions
Index a specific file into an existing project and persist it in config.yaml so it gets re-indexed automatically on future runs.
Args: file_path: Absolute path to the file to index project: Project name to add the file to (must already exist)
Returns: Confirmation with chunk count, or error message
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>",
"project": "<project>"
},
"name": "add_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |