download_file_with_auto_trigger
Download files from Supabase Storage buckets with optional auto-download triggers, custom filenames, and image transformation capabilities for flexible file retrieval.
Instructions
Download file with optional auto-download trigger and custom filename support
Input Schema
Name | Required | Description | Default |
---|---|---|---|
auto_download | No | Generate auto-download trigger code | |
bucket_name | Yes | Source bucket | |
custom_filename | No | Custom filename for download | |
file_path | Yes | Full file path in storage | |
return_format | No | Format to return file content or URL | base64 |
transform_options | No | Optional image transformation settings |
Input Schema (JSON Schema)
{
"properties": {
"auto_download": {
"default": false,
"description": "Generate auto-download trigger code",
"type": "boolean"
},
"bucket_name": {
"description": "Source bucket",
"maxLength": 63,
"minLength": 3,
"type": "string"
},
"custom_filename": {
"description": "Custom filename for download",
"maxLength": 255,
"type": "string"
},
"file_path": {
"description": "Full file path in storage",
"maxLength": 1024,
"type": "string"
},
"return_format": {
"default": "base64",
"description": "Format to return file content or URL",
"enum": [
"base64",
"binary",
"signed_url"
],
"type": "string"
},
"transform_options": {
"additionalProperties": false,
"description": "Optional image transformation settings",
"properties": {
"height": {
"description": "Resize height in pixels",
"maximum": 5000,
"minimum": 1,
"type": "number"
},
"quality": {
"description": "Image quality (1-100)",
"maximum": 100,
"minimum": 1,
"type": "number"
},
"width": {
"description": "Resize width in pixels",
"maximum": 5000,
"minimum": 1,
"type": "number"
}
},
"type": "object"
}
},
"required": [
"bucket_name",
"file_path"
],
"type": "object"
}