openwebui_upload_file
Upload a file to Open WebUI by sending its base64-encoded content. Returns a file ID for adding to a RAG collection.
Instructions
Upload a file to Open WebUI. Accepts base64-encoded content (required for MCP stdio transport). After uploading, use the returned file ID with openwebui_add_file_to_knowledge to add it to a RAG collection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name of the file including extension (e.g. "report.pdf", "data.txt") | |
| content_type | No | MIME type (e.g. "text/plain", "application/pdf", "text/markdown"). Defaults to "application/octet-stream". | application/octet-stream |
| base64_content | Yes | Base64-encoded file content |