openwebui_add_file_to_knowledge
Add an uploaded file to a knowledge base for RAG retrieval. Use the file ID from the upload response to link it to a specific knowledge base.
Instructions
Add an uploaded file to a knowledge base for RAG retrieval. The file must already be uploaded via openwebui_upload_file. Get the file ID from the upload response.
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": {
"knowledge_id": "<knowledge_id>",
"file_id": "<file_id>"
},
"name": "openwebui_add_file_to_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File ID (from openwebui_upload_file response) | |
| knowledge_id | Yes | Knowledge base ID |