s3_download_object
Download an S3 object to a local file, restricting writes to your home directory, current working directory, or ~/Downloads for safety.
Instructions
Download an object from S3 to a local file. local_path must resolve under the user's home directory, current working directory, or ~/Downloads — paths outside these roots are rejected for safety.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Object key. | |
| bucket | Yes | Bucket name. | |
| region | No | Region the bucket lives in (e.g. 'eu-central-1'). Omit unless you know it — it is resolved automatically. AWS, and OVH when no endpoint URL is configured (pass the region s3_list_buckets reports). Rejected for Hetzner, and for an OVH endpoint URL set by hand, whose region is fixed by that endpoint. | |
| account | No | Account label of the provider whose object storage to use; omit for that provider's default account. | |
| provider | Yes | Storage provider. | |
| local_path | Yes | Local file path to write the downloaded object to. |