MCP tools

Save brand style guide

Saves the active brand's style guide, replacing any earlier one from the same site: palette, typography, shapes, logo, imagery, voice, and do and don't rules.

Tool name: save-brand-style-guide.

Saves the active brand's style guide, replacing any earlier one from the same site: palette, typography, shapes, logo, imagery, voice, and do and don't rules. Never for a site read to make ads for another brand. Use only assetIds that extract-brand-style returned for this brand. Set confirmed to true only after the user agreed the guide is right.

When to use

After extract-brand-style, once you have written the guide; again with confirmed: true when the user approves it, or after any change they ask for.

Access

PropertyValue
Required scopewrite
PublishesNo
Read-onlyNo
DestructiveYes
IdempotentYes
Open worldNo

Input

FieldTypeRequiredDescription
sourceUrlstring | nullYesThe website the guide was built from, or null. At most 2048 characters.
guideobjectYes
guide.paletteobject[]YesAt least 1 item, at most 12 items.
guide.palette[].hexstringYes
guide.palette[].rolestringYesOne of primary, accent, background, surface, text, muted, cta, ctaText, other.
guide.palette[].namestringNoAt most 60 characters.
guide.palette[].sourcestringYesmeasured: read from the page styles; site: found on the site, such as a file or a stated name; inferred: your judgement. One of measured, site, inferred.
guide.typographyobjectYes
guide.typography.headingobjectYes
guide.typography.heading.familystringYesThe font family name, as the site names it. At most 100 characters.
guide.typography.heading.weightintegerNoMinimum 100, maximum 900.
guide.typography.heading.fallbackstringYesThe kind of font, used when the family cannot load. One of serif, sans-serif, monospace, display, handwriting.
guide.typography.heading.sourcestringYesmeasured: read from the page styles; site: found on the site, such as a file or a stated name; inferred: your judgement. One of measured, site, inferred.
guide.typography.heading.assetIdsinteger[]NoFONT assetIds from extract-brand-style for this family. Leave out to load the family from Google Fonts. At most 12 items.
guide.typography.bodyobjectYes
guide.typography.body.familystringYesThe font family name, as the site names it. At most 100 characters.
guide.typography.body.weightintegerNoMinimum 100, maximum 900.
guide.typography.body.fallbackstringYesThe kind of font, used when the family cannot load. One of serif, sans-serif, monospace, display, handwriting.
guide.typography.body.sourcestringYesmeasured: read from the page styles; site: found on the site, such as a file or a stated name; inferred: your judgement. One of measured, site, inferred.
guide.typography.body.assetIdsinteger[]NoFONT assetIds from extract-brand-style for this family. Leave out to load the family from Google Fonts. At most 12 items.
guide.shapesobjectYesPlain descriptions, such as "pill buttons, 9999px" or "16px card corners, thin 1px borders".
guide.shapes.cornersstringYesAt most 300 characters.
guide.shapes.buttonsstringYesAt most 300 characters.
guide.shapes.cardsstringNoAt most 300 characters.
guide.shapes.linesstringNoAt most 300 characters.
guide.shapes.otherstringNoAt most 300 characters.
guide.logoobjectNo
guide.logo.assetIdintegerYesA LOGO assetId from extract-brand-style.
guide.logo.usestringYesThe background the logo is made for. One of onDark, onLight, any.
guide.imagerystringYesThe look of the brand's photos and visuals, from the screenshots. At most 1500 characters.
guide.voicestringYesHow the brand writes, from its own copy. At most 1500 characters.
guide.dosstring[]YesAt most 10 items.
guide.dontsstring[]YesAt most 10 items.
confirmedbooleanYesTrue only when the user has approved the guide.
replacesSitebooleanNoTrue only when the user chose sourceUrl as this brand's own website. Without it, a guide from another site than the brand's saved guide is refused, so a site read to make ads for another brand never replaces this brand's style.

Output

FieldTypeRequiredDescription
guideobject | nullYes
confirmedAtstring | nullYesWhen the user approved the guide; null while it is a draft.
sourceUrlstring | nullYes
logoobject | nullYes
fontCssstringYesCSS that loads the guide's fonts. Paste it into the <style> of an HTML layout before using the font families.
imagesobject[]YesThe site's own images: product shots, app screens, the hero and its social image, stored as brand assets. Pass a url as an imageUrl reference to generate-creatives, or use it as an <img> src in render-creative html. At most 6 items.

REST equivalent

PUT /v1/brands/{brandId}/style-guide, Save brand style guide. CLI: koast save-brand-style-guide.

On this page