ima_upload_file_to_knowledge
Uploads a local file to an IMA knowledge base by checking for duplicates, creating the media entry, uploading to COS, and adding the file as knowledge.
Instructions
上传本地文件到 IMA 知识库:预检、查重、创建媒体、COS 上传、添加知识。
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": {
"file_path": "<file_path>",
"knowledge_base_id": "<knowledge_base_id>"
},
"name": "ima_upload_file_to_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | ||
| file_path | Yes | ||
| folder_id | No | ||
| timeout_ms | No | ||
| content_type | No | ||
| fail_if_repeated | No | ||
| knowledge_base_id | Yes |