ragflow_download_agent_attachment
Downloads an agent attachment by ID, returning text content directly or binary data as base64 when requested.
Instructions
Download an agent attachment. Text comes back as text; binary content as base64 on request.
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": {
"attachment_id": "<attachment_id>"
},
"name": "ragflow_download_agent_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ext | No | File extension such as pdf or txt, used for the content type | |
| max_chars | No | Return at most this many characters of text | |
| attachment_id | Yes | Attachment ID, e.g. a file an agent produced or one uploaded | |
| include_base64 | No | Return binary content as base64 (up to 5 MB) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||