upload_knowledge_file
Add an already uploaded OSS file to a GetNote knowledge base using metadata, then verify ingestion by checking the same resource ID until SUCCESS or FAIL.
Instructions
保留已上传对象和同一笔记 client_request_id;保存遇限流不要重新上传。凭据敏感,不得放进聊天、日志或命令参数。任务 pending/processing 不等于完成。恢复仅查询原 operation_id,不能自动申请新 key。OSS 直传成功后将原文件加入知识库,只接收元数据,不接收本地路径或 base64。返回处理中的资源不等于入库成功;用 list_knowledge_base_directories 查询同一 ID,直到 SUCCESS 或 FAIL。
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": {
"topic_id": "<topic_id>",
"directory_id": "<directory_id>",
"file_name": "<file_name>",
"file_type": "<file_type>",
"md5": "<md5>",
"url": "<url>"
},
"name": "upload_knowledge_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| md5 | Yes | ||
| url | Yes | ||
| topic_id | Yes | ||
| file_name | Yes | ||
| file_type | Yes | ||
| directory_id | Yes |