Widget_Showcase
File Download
file_download Tool name: file_download
Prop Configuration
Widget Props
{
"widgetId": "demo-file-download",
"widgetType": "file_download",
"filename": "report-2026.pdf",
"size": 2048576,
"url": "#",
"data": {
"fileName": "report-2026.pdf",
"fileSize": 2048576,
"url": "#"
}
}Widget Metadata
File Download
Renders a downloadable file with name, size, and type information.
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| filename | string | yes | Name of the file to display and download. |
| size | number | yes | File size in bytes (auto-formatted to KB/MB/GB). |
| url | string | — | Download URL for the file. |
