ragflow_download_document
Retrieve a document's original file from a RAGFlow knowledge base by dataset and document ID; text files return content, while binary files return size and type.
Instructions
Read a document's original file. Text files come back as text; binary files only as size and type.
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": {
"dataset_id": "<dataset_id>",
"document_id": "<document_id>"
},
"name": "ragflow_download_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_chars | No | ||
| dataset_id | Yes | Dataset (knowledge base) ID | |
| document_id | Yes | Document ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||