Set the help center's brand
colliedesk_help_center_theme_updateReplace the brand of the public help center: a field left out or null goes back to its default, so read it first with colliedesk_help_center_theme_get and send the whole theme. Every color pair must meet WCAG AA: 4.5:1 for text, links, header text, button text on the primary color and footer text, 3:1 for the primary color against the background. A failing pair is refused with the nearest passing color; colliedesk_help_center_theme_check tries a theme first. The logo and favicon must be images of the media library outside its trash; one the theme already has may stay while it is in the trash, so sending the theme back whole still saves. They are kept while the help center names them and kept no more once it names another. Fonts are stacks of the reader's own system fonts. Custom CSS follows the theme on every page; one that could load anything is refused with its line and column. custom_css is required: send the CSS to keep, or null or "" to clear it. It changes every public page, so it needs kb_articles:publish as well as help_center:update. It is safe to repeat.
Needs: help_center:update.
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": {
"custom_css": "<custom_css>"
},
"name": "colliedesk_help_center_theme_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | No | Each #rrggbb or null for the default; any color set makes the pages light only. | |
| logo_alt | No | What the logo says, for screen readers; empty uses the title. | |
| body_font | No | ||
| custom_css | Yes | CSS served after the colors and fonts on every public page; empty or null is none. Required by the update, which would otherwise remove it. At most 32,768 bytes of UTF-8 (a character outside ASCII takes 2 to 4), stored and served exactly as sent. Refused with its line and column when it could load anything or leave its style sheet: url() and image functions, expression(), the properties behavior and -moz-binding, at-rules other than @media, @supports, @keyframes, @layer and @container, a backslash outside quotes, </, <!--, a control character other than tab and line ends, unbalanced brackets, unclosed strings or comments. The contrast checks do not cover it. | |
| contact_url | No | An https address, or mailto: and one plain email address (no name, no ?subject= or ?bcc=, no %-encoding). | |
| heading_font | No | ||
| linkback_url | No | Your website, absolute http or https. | |
| contact_phone | No | Digits, spaces and + - ( ). | |
| logo_media_id | No | An image of the media library (colliedesk_kb_media_list), outside its trash unless it is the logo the theme already has. | |
| help_center_id | No | One of colliedesk_help_centers_list; left out, the primary help center. | |
| favicon_media_id | No | An image of the media library for the browser tab. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||