add_kb_document
Add documents to a knowledge base by specifying the target knowledge base ID and uploading up to 20 files via local absolute path (with MIME type), URL, or Base64 content.
Instructions
向知识库添加文档时调用;本地文件传绝对路径并带 mime_type,URL 直接传链接。
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": {
"knowledgebase_id": "<knowledgebase_id>",
"file": "<file>"
},
"name": "add_kb_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | 要上传的文档列表(最多 20 个) | |
| knowledgebase_id | Yes | 目标知识库 ID |