s3_download_object
Download an object from S3 to a local file, with safety checks ensuring the path resolves under allowed directories.
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. | |
| provider | Yes | Storage provider. | |
| local_path | Yes | Local file path to write the downloaded object to. |