Update brand guide
update_brand_guideEdits specific lines of a brand guide directly, the way the dashboard's inline edit does: replace, remove or add a line in doList, dontList, limitations, offers, voice.toneRules, voice.examples, imagery.doList or imagery.dontList; set identity.tagline, identity.mission, identity.description or imagery.styleDescription; add, update or remove a capability by name. A line to replace or remove is named by its exact current text and must match exactly one line, otherwise nothing is changed and the nearest lines are listed. All-or-nothing, and every line you don't name stays exactly as it was. Returns what would change and saves nothing unless apply is true, so call it once without apply, show the owner the changes, then again with apply true. Pass expectedVersion (from get_brand_guide) so a guide edited elsewhere in the meantime is refused. Does not approve the guide: an approved guide stays approved and is marked edited after approval. When the edit touches limitations, identity, offers or capabilities it also lists other guide lines that contradict it (advisory, nothing is changed for you); this uses a small amount of the brand's generation budget, and checkConsistency false skips it. Not for palette, logos, fonts, personas or a full rewrite — use set_brand_guide_typography, set_brand_logo or regenerate_brand_guide_section for those.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Default false: return exactly what would change (before/after for each operation) and write nothing. Pass true to save it. | |
| brandId | Yes | The brand's id, from list_brands. | |
| guideId | Yes | The guide's id, from get_brand_guide. | |
| operations | Yes | The edits, applied in order. All or nothing: if any operation can't be applied exactly, none are and every problem is listed. | |
| expectedVersion | No | The guide's version (from get_brand_guide) that you read these lines from. Refused if the guide has changed since — e.g. someone edited it in the dashboard. | |
| checkConsistency | No | Default true. When the edit touches limitations, identity, offers or capabilities, also check the rest of the guide for lines that now contradict it and list them as warnings — advisory only, nothing is changed automatically. Pass false to skip. |