download_file
Download files from Supabase Storage buckets with optional image transformations like resizing and quality adjustment. Supports base64 or binary return formats for direct file content retrieval.
Instructions
Download file content directly with optional image transformations
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bucket_name | Yes | Source bucket | |
file_path | Yes | Full file path in storage | |
return_format | No | Format to return file content | base64 |
transform_options | No | Optional image transformation settings |
Input Schema (JSON Schema)
{
"properties": {
"bucket_name": {
"description": "Source bucket",
"maxLength": 63,
"minLength": 3,
"type": "string"
},
"file_path": {
"description": "Full file path in storage",
"maxLength": 1024,
"type": "string"
},
"return_format": {
"default": "base64",
"description": "Format to return file content",
"enum": [
"base64",
"binary"
],
"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"
}