Update banner colours
update_banner_coloursUpdate the theme or colour scheme of the CookieYes cookie consent banner for a website. Changes are automatically published live. If the user wants a full theme change, present FOUR options: Light, Dark, Auto-generated, or manual custom colours. Use 'theme=light' or 'theme=dark' for preset themes, and use 'theme=recommended' for the Auto-generated option from the dashboard. If the user chooses manual custom colours, do NOT offer only a short generic list. Offer the actual colourable elements for that law. GDPR manual-colour options: banner background, banner border, title text, body text, Accept button, Reject button, Customise button, Cookie Policy link, Preference Center toggle enabled, Preference Center toggle disabled, Save My Preferences button, Google Privacy link, Revisit Consent button, Blocked Content background, Blocked Content border, Blocked Content text. CCPA manual-colour options: banner background, banner border, title text, body text, Do Not Sell link, opt-out checkbox enabled, opt-out checkbox disabled, Cancel button, Save My Preferences button, Revisit Consent button, Blocked Content background, Blocked Content border, Blocked Content text. When the user picks a button or link, ask which parts to change if needed: background, border, text. Any individual colour edit automatically saves the banner theme as custom. When presenting results, refer to the banner by its law (GDPR/CCPA), not by ID. All colour values sent to this tool must be in hex format: #fff or #ffffff. If the user provides a colour in any other format (name, rgb, rgba, hsl), convert it to hex before calling this tool. PLAN CHECK: Before offering theme or colour options, check the website's plan from list_domains. If the website is on a Free plan, only offer Light and Dark themes — do NOT offer Auto-generated or manual custom colours, as these require a paid plan. Inform the user that custom colours are available on paid plans. IMPORTANT: Before making any changes, ALWAYS ask the user to confirm: (1) which website if they have multiple domains, (2) which banner (GDPR, CCPA, or both) they want to update. NEVER assume or auto-select banners. Even if there is only one website or one banner, confirm with the user before proceeding. NEVER update multiple banners in a single action without explicit user approval for each one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"websiteId": "<websiteId>",
"bannerId": "<bannerId>"
},
"name": "update_banner_colours"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Theme option. Present these user-facing choices as Light, Dark, Auto-generated, or manual custom colours. Use 'recommended' for Auto-generated. 'custom' means keep the current base theme but save individual colour edits as a custom theme. | |
| bannerId | Yes | Banner ID — get from list_banners first | |
| websiteId | Yes | Numeric website ID from list_domains — not the website URL or key | |
| titleColor | No | Banner title text colour. | |
| acceptButtonBg | No | GDPR only — Accept button background colour. Also updates the preference center Accept button. | |
| cancelButtonBg | No | CCPA only — Cancel button background colour. | |
| rejectButtonBg | No | GDPR only — Reject button background colour. Also updates the preference center Reject button. | |
| revisitButtonBg | No | Revisit Consent floating button background colour. | |
| acceptButtonText | No | GDPR only — Accept button text colour. Also updates the preference center Accept button. | |
| bannerBackground | No | Banner background colour. Mirrors the frontend and also updates the GDPR preference center and the CCPA opt-out popup container background. | |
| blockedContentBg | No | Blocked-content placeholder background colour. | |
| cancelButtonText | No | CCPA only — Cancel button text colour. | |
| descriptionColor | No | Message/body text colour. Mirrors the frontend fan-out and updates the related GDPR preference center text, category text, IAB/DMA text, and CCPA opt-out text elements. | |
| rejectButtonText | No | GDPR only — Reject button text colour. Also updates the preference center Reject button. | |
| bannerBorderColor | No | Banner border colour. Mirrors the frontend and also updates the GDPR preference center and the CCPA opt-out popup container border. | |
| customiseButtonBg | No | GDPR only — Customise button background colour. | |
| doNotSellLinkText | No | CCPA only — Do Not Sell link text colour. | |
| blockedContentText | No | Blocked-content placeholder text colour. | |
| cookiePolicyLinkBg | No | GDPR only — Cookie Policy link background colour. | |
| optOutSaveButtonBg | No | CCPA only — Save My Preferences button background colour in the opt-out center. | |
| customiseButtonText | No | GDPR only — Customise button text colour. | |
| googlePrivacyLinkBg | No | GDPR only — Google Privacy link background colour. | |
| cookiePolicyLinkText | No | GDPR only — Cookie Policy link text colour. | |
| optOutSaveButtonText | No | CCPA only — Save My Preferences button text colour in the opt-out center. | |
| googlePrivacyLinkText | No | GDPR only — Google Privacy link text colour. | |
| acceptButtonBorderColor | No | GDPR only — Accept button border colour. Also updates the preference center Accept button. | |
| cancelButtonBorderColor | No | CCPA only — Cancel button border colour. | |
| optOutCheckboxEnabledBg | No | CCPA only — Opt-out checkbox enabled-state background colour. | |
| rejectButtonBorderColor | No | GDPR only — Reject button border colour. Also updates the preference center Reject button. | |
| savePreferencesButtonBg | No | GDPR only — Save My Preferences button background colour. Also updates the category preview save button. | |
| optOutCheckboxDisabledBg | No | CCPA only — Opt-out checkbox disabled-state background colour. | |
| blockedContentBorderColor | No | Blocked-content placeholder border colour. | |
| savePreferencesButtonText | No | GDPR only — Save My Preferences button text colour. Also updates the category preview save button. | |
| customiseButtonBorderColor | No | GDPR only — Customise button border colour. | |
| cookiePolicyLinkBorderColor | No | GDPR only — Cookie Policy link border colour. | |
| optOutSaveButtonBorderColor | No | CCPA only — Save My Preferences button border colour in the opt-out center. | |
| googlePrivacyLinkBorderColor | No | GDPR only — Google Privacy link border colour. | |
| preferenceCenterToggleEnabledBg | No | GDPR only — Preference Center toggle enabled-state background colour. Also updates category preview and IAB toggle enabled-state colours. | |
| preferenceCenterToggleDisabledBg | No | GDPR only — Preference Center toggle disabled-state background colour. Also updates category preview and IAB toggle disabled-state colours. | |
| savePreferencesButtonBorderColor | No | GDPR only — Save My Preferences button border colour. Also updates the category preview save button. |