Supported File Types
Plain text and Markdown files must use UTF-8 encoding.
Size Limit
The maximum file size is 20 MB.REST API
Upload a File
knowledge:write
Send the file as multipart/form-data.
Parameters:
Example:
MCP
upload_source_file
Upload a file to a knowledge source via the MCP JSON-RPC interface. The file content must be base64-encoded. Scope required:knowledge:write
Parameters:
Example:
Error Handling
Upload errors return422 with one of these codes:
