ragflow_upload_agent_file
Uploads a file for an agent run, returning an object to pass in the chat files field so agents can include uploaded content in RAGFlow conversations.
Instructions
Upload a file for an agent run; pass the returned object in ragflow_agent_chat files.
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": {
"agent_id": "<agent_id>"
},
"name": "ragflow_upload_agent_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | UTF-8 text content | |
| agent_id | Yes | Agent ID | |
| filename | No | File name with extension; defaults to the file_path name | |
| file_path | No | Path on the MCP server host, inside an allowed upload root | |
| content_base64 | No | File bytes as base64 (small files only) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||