tos_put_object
Upload objects to TOS storage by providing bucket name, object key, and content, supporting base64 encoding and content type specification.
Instructions
上传对象到 TOS
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket_name | Yes | 存储桶名称 | |
| content | Yes | 文件内容(base64编码)或文本内容 | |
| content_type | No | 内容类型 | application/octet-stream |
| is_base64 | No | 内容是否为base64编码 | |
| object_key | Yes | 对象键名 |
Input Schema (JSON Schema)
{
"properties": {
"bucket_name": {
"description": "存储桶名称",
"type": "string"
},
"content": {
"description": "文件内容(base64编码)或文本内容",
"type": "string"
},
"content_type": {
"default": "application/octet-stream",
"description": "内容类型",
"type": "string"
},
"is_base64": {
"default": false,
"description": "内容是否为base64编码",
"type": "boolean"
},
"object_key": {
"description": "对象键名",
"type": "string"
}
},
"required": [
"bucket_name",
"object_key",
"content"
],
"type": "object"
}