Generate Presigned URL for Download
s3_get_objectGenerate a time-limited presigned URL for downloading an S3 object without AWS credentials, so users can share files and download in a browser or HTTP client.
Instructions
Generate a time-limited presigned URL for downloading an S3 object.
This tool creates a secure URL that allows downloading an object without AWS credentials. The URL is time-limited and automatically expires.
Use cases:
Share files with users who don't have AWS access
Download objects in browser or HTTP client
Integrate S3 downloads in applications without AWS SDK
Args: bucket_name: S3 bucket name key: Object key (path within bucket, e.g., 'data/report.pdf') expires_in: URL expiration in seconds (1-604800, default: 3600 = 1 hour) response_content_disposition: Override Content-Disposition (e.g., 'attachment; filename=report.pdf') response_content_type: Override Content-Type (e.g., 'application/pdf') response_format: Output format - 'markdown' (default) or 'json'
Returns: Presigned URL with expiration details and usage example (curl command).
Security Notes: - URLs are time-limited (max 7 days, default 1 hour) - Anyone with the URL can download during validity period - URLs cannot be revoked before expiration - Use shorter expiration for sensitive data
Error Handling: - Bucket/object not found: Returns error with verification suggestions - Access denied: Returns error with IAM permission guidance - Invalid parameters: Returns validation error with field details
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": {
"bucket_name": "<bucket_name>",
"key": "<key>"
},
"name": "s3_get_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| expires_in | No | ||
| bucket_name | Yes | ||
| response_format | No | markdown | |
| response_content_type | No | ||
| response_content_disposition | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |