object_copy
Copy an object within a bucket or to another bucket in the same region server-side; existing destinations are refused unless overwrite is true. Set metadata or content type to replace copy metadata.
Instructions
Copy an object within a bucket or to another bucket in the same region, server side. Refuses when the destination exists unless overwrite is true. Passing metadata or content_type replaces the copy's metadata.
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": {
"source_bucket": "<source_bucket>",
"source_key": "<source_key>",
"destination_bucket": "<destination_bucket>",
"destination_key": "<destination_key>"
},
"name": "object_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | ||
| metadata | No | ||
| overwrite | No | ||
| source_key | Yes | ||
| version_id | No | ||
| content_type | No | ||
| source_bucket | Yes | ||
| destination_key | Yes | ||
| destination_bucket | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||