upload_file
Upload a file to Huly storage using a local path, remote URL, or base64 data. Returns a blob ID and URL to reference the file.
Instructions
Upload a file to Huly storage. Provide ONE of: filePath (local file - preferred), fileUrl (fetch from URL), or data (base64 - for small files only). Returns blob ID and URL for referencing the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Base64-encoded file data (fallback for small files <10KB) | |
| fileUrl | No | URL to fetch file from (for remote files) | |
| filePath | No | Local file path to upload (preferred - avoids context flooding) | |
| filename | Yes | a string that will be trimmed | |
| contentType | Yes | a string that will be trimmed |