s3_download_object
Download an S3 object to a local file, restricting destination paths to home, current working directory, or ~/Downloads.
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 only; rejected for Hetzner/OVH, whose region is fixed by the configured endpoint URL. | |
| provider | Yes | Storage provider. | |
| local_path | Yes | Local file path to write the downloaded object to. |