get_knowledge_file_upload_token
Obtain temporary OSS upload credentials for a knowledge file, enabling direct PUT upload via local CLI without re-login. Reuse operation_id to resume instead of re-uploading.
Instructions
保留已上传对象和同一笔记 client_request_id;保存遇限流不要重新上传。凭据敏感,不得放进聊天、日志或命令参数。任务 pending/processing 不等于完成。恢复仅查询原 operation_id,不能自动申请新 key。获取一次 OSS 文件上传临时凭据。通过本地 getnote upload --token-file --max-size-bytes <能力上限> 直接 PUT 到 OSS,无需再次 CLI 登录。凭据通过受控文件或 stdin 传入,不写命令参数或聊天;不要把文件字节传给云 MCP。
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": {
"mime_type": "<mime_type>"
},
"name": "get_knowledge_file_upload_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime_type | Yes | 能力接口返回的扩展名,如 HTML | |
| operation_id | No | 可选的原上传操作标识;恢复时必须复用。仅服务器协商支持时可用,不支持时明确失败。 |