TOS 上传文件 tos/object/put
tos_object_putUpload a local file to a private Volcengine TOS bucket and return a presigned download URL (default 24h) for controlled access.
Instructions
上传本地文件到火山引擎 TOS(API Action: PutObject,对应工具名 tos_object_put = 服务_资源_动作),bucket 保持私有,返回预签名下载 URL(默认 24h 有效)。对象 key 默认为 //<文件名>。需要环境变量 VOLC_TOS_ACCESS_KEY / VOLC_TOS_SECRET_KEY / VOLC_TOS_BUCKET / VOLC_TOS_REGION。
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>"
},
"name": "tos_object_put"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | 完整对象 key;不传则自动生成 <prefix>/<日期>/<文件名> | |
| bucket | No | 覆盖默认 bucket | |
| prefix | No | key 前缀,默认取 VOLC_TOS_PREFIX,再默认 volcengine-api-mcp | |
| region | No | 覆盖默认 region | |
| expires | No | 预签名 URL 有效期(秒),默认 86400(24h) | |
| endpoint | No | 覆盖默认 endpoint | |
| file_path | Yes | 要上传的本地文件路径(绝对路径) | |
| content_type | No | 覆盖 Content-Type(默认按扩展名推导,未知类型为 application/octet-stream) |