Assets & Images

Upload Asset

vibesites_upload_asset

Upload 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

NameTypeRequiredDescription
site_idstringRequiredSite ID
filenamestringRequiredFilename (e.g., "hero-bg.jpg")
content_base64stringOptionalBase64-encoded file content (for direct uploads)
content_typestringOptionalMIME type (e.g., "image/jpeg")
urlstringOptionalURL to download the asset from (alternative to base64)

Example

Ask Claude something like:

Prompt example
"Upload this image as the hero background"

Related tools