Upload knowledge base document
upload_knowledge_base_document[Knowledge base] Upload and process a knowledge base document (base64 file, name with its extension) into a store from list_knowledge_base_stores. An interview uses a store once create_interview / update_interview set its knowledge_base_store_id: interview_ids can only name interviews already linked to the store. The optional interview_ids limits it to chosen interviews on the same knowledge base: left out it is every interview, [] is none. Returns the limit it set.
Every argument in full, with examples: get_tool_reference.
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_base_store_id": "<knowledge_base_store_id>",
"name": "<name>",
"file": "<file>"
},
"name": "upload_knowledge_base_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The document file, base64-encoded. | |
| name | Yes | Document name with its extension, which decides how the file is read: .doc, .docx, .rtf, .odt, .pdf, .pages or .pptx; any other is refused with 422 (name). | |
| llm_model | No | Your model id, e.g. "claude-opus-4-8"; "unknown" if unsure. For analytics. | |
| merchant_id | No | Override merchant id (admin / sub-merchant only). | |
| interview_ids | No | The interviews that may use this document, in the live session and when generating questions. Omit it or send null to use the document in every interview on the knowledge base. An empty list limits it to no interview. Each interview must belong to the same company and use this knowledge base. | |
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. | |
| knowledge_base_store_id | Yes | The knowledge base store to add the document to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interview_ids | No | ||
| _mcp_instructions | No | Server-issued metadata for this conversation. | |
| knowledge_base_id | Yes | ||
| limit_to_interviews | Yes |