upload_file
Upload a file from disk to the LightRAG knowledge graph for indexing. Verifies existence and supported extension, then returns a track ID for status polling.
Instructions
Upload and index a single file already present on disk. Checks the file exists and its extension is supported before uploading -- call get_supported_file_types first if unsure. Returns a track_id; poll with get_track_status.
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": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file, as seen INSIDE the Hermes container -- NOT the Windows host path. E.g. a file at D:\Harness\workspace\a.pdf on the host is /opt/data/workspace/a.pdf here. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||