upload_asset
Upload local files to BrandKity blocks for logos, visuals, videos, collaterals, resources, or icons, with MIME validation and storage routing.
Instructions
Upload a file from the local filesystem into a block in BrandKity. Use for: logos (SVG/PNG/JPG), visuals (brand photos), videos (MP4/WebM), icons (SVG only), collaterals (PDF/images), and resources (ZIPs, source files). For custom font files, use upload_file → add_typography(asset_url) instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kit_id | Yes | Kit UUID | |
| block_id | Yes | Block UUID | |
| file_path | Yes | Absolute path to the local file, e.g. '/Users/jane/Projects/AcmeCorp/logos/acme-primary.svg' | |
| block_type | Yes | Target block type (used for MIME validation and storage path) | |
| variant_name | No | For logos blocks only — the logo variant slot name, e.g. "Primary", "Horizontal", "Icon Mark", "Mono", "Reversed". Defaults to first empty slot. | |
| collateral_title | No | For collaterals blocks only — the display title | |
| collateral_description | No | Optional description for collateral items | |
| resource_label | No | For resources blocks only — the display label, e.g. "Figma Source File" | |
| resource_category | No | Category grouping for the resource, e.g. "Source Files" |