upload_directory
Upload all supported files from a directory to LightRAG in one call, reporting each file's outcome. Unsupported files are skipped, and errors in one file don't stop the others.
Instructions
Upload every supported file directly inside a directory, one by one, reporting each file's own outcome -- unsupported extensions are skipped (not treated as errors), and one file failing does not stop the rest. Use this instead of calling upload_file in a loop.
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": {
"directory": "<directory>"
},
"name": "upload_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | Absolute path to a directory, as seen INSIDE the Hermes container, whose supported files should all be uploaded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||