Upload Asset
vibesites_upload_assetUpload an image, video, or font to a site. Two modes: (1) pass content_base64 + content_type for base64 uploads, (2) pass url to download from an external URL and host locally. Assets are stored at /assets/{filename} on the CDN. Supports: png, jpg, gif, webp, svg, ico, mp4, webm, woff2, woff, ttf, pdf.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
site_id | string | Required | Site ID |
filename | string | Required | Filename (e.g., "hero-bg.jpg") |
content_base64 | string | Optional | Base64-encoded file content (for direct uploads) |
content_type | string | Optional | MIME type (e.g., "image/jpeg") |
url | string | Optional | URL to download the asset from (alternative to base64) |
Example
Ask Claude something like:
Prompt example
"Upload this image as the hero background"