Manage brand kit
manage_brand_kitCreate and change the workspace's brand kits (editors and admins). The same operations as the brand kit page, so a kit made here looks the same there.
Actions:
"create": a kit from
url(reads the site's logos, colors, fonts and icons; company details are researched in the background and land in about a minute), or blank with clearly marked placeholders.nameis optional."preview_fill": what
urlwould give kitkit_id, and which of its sections are still placeholders. Changes nothing."fill": apply it.
replacelists sections that take the site's version (company, logos, colors (or palette), fonts, icons, reference_images, guidelines); empty means the placeholder sections, so the user's own uploads and edits stay.add(logos, reference_images) keeps the kit's items and adds the site's. The reply'sappliednames the sections that changed."update":
changes, only what is given changes: name, palette {background,text,accent,accent2, notes {role: {name,usage}} (a color's name and how to use it)}, fonts {display,heading,subheading,paragraph,mono} (a family per type-scale role), icons {library,style}, company {one_liner,audience,problem,key_features}, overview, tone_of_voice, guidelines {recommendations,restrictions}, add_logo {url,kind,for_background}, remove_logo_id, primary_logo_id, captions (a caption style object, as a clip's subtitle_settings.subtitlesStyle or get_design_guide brand.captions gives it), voices {language: {code, engine} | null} (a default kit's voices are the workspace's default voices)."set_default": make
kit_idthe workspace default."research": redo the company research from the kit's site.
"dark_logo": make a version of the kit's light-background logo
logo_idfor dark backgrounds and use it.mode"white" is the mark in white (instant); "recolor" is an AI redraw that keeps its colors (about 30 seconds, budgeted per workspace). A logo that can't be made white says why: try recolor, or ask the user for a file."delete": delete kit
kit_id; projects that used it move to the workspace default kit. The last kit can be deleted too: the workspace then has no brand kit, and its projects and new ones are made without one. Ask the user first (saying so for the last kit), and passconfirmed: trueonly after they agree.
Kit ids come from find(type='brand_kits'). get_design_guide({brand_kit_id}) reads a kit in full.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | fill: logos and/or reference_images to add beside the kit's own. | |
| url | No | Website, e.g. 'cursor.com' (create, preview_fill, fill). | |
| mode | No | dark_logo: how to make it. | |
| name | No | Kit name (create). | |
| action | Yes | ||
| kit_id | No | The kit; every action but create. | |
| changes | No | update: the fields to change. | |
| logo_id | No | dark_logo: the kit's light-background logo to make it from. | |
| replace | No | fill: sections that take the site's version; 'palette' is the same as 'colors'. | |
| confirmed | No | delete: true only after the user agreed to delete this kit. |