brand_set_logo
Add or replace a brand logo in the brand system using SVG markup, URL, or data URI. Updates brand identity files and provides logo preview data.
Instructions
Add or replace a logo in the brand system. Accepts raw SVG markup, a URL to a logo file (SVG/PNG), or a base64 data URI. Use when brand_extract_web missed the logo, extracted the wrong image, or the user provides a logo directly. Sanitizes SVG, saves to .brand/assets/logo/, and updates core-identity.yaml with inline_svg and data_uri for portable embedding. Returns logo preview data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | No | Raw SVG markup to use as the logo | |
| url | No | URL to fetch the logo from (SVG or PNG) | |
| data_uri | No | Base64 data URI of the logo (e.g., data:image/svg+xml;base64,...) | |
| type | No | Logo type: "wordmark" (text-based) or "logomark" (icon/symbol). Default: wordmark | wordmark |