ragflow_download_file
Retrieve a file from the RAGFlow file manager as text, or return binary content as base64 when requested.
Instructions
Read a file from the file manager. Text comes back as text; binary only on request, as base64.
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_id": "<file_id>"
},
"name": "ragflow_download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File or folder ID in the RAGFlow file manager | |
| max_chars | No | Return at most this many characters of text | |
| include_base64 | No | Return binary content as base64 (up to 5 MB) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||