Check a help center brand without saving it
colliedesk_help_center_theme_checkCheck a candidate brand the way colliedesk_help_center_theme_update would, and save nothing. 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. ok is false when a pair fails; fields then says, per color, its ratio and the nearest color that passes. A field of the wrong shape or a logo that is not a library image is an error. With preview (home or article), html also holds that page of the help center rendered with the theme from its published articles, the way the settings card shows it.
Needs: help_center:read.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "colliedesk_help_center_theme_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | No | Each #rrggbb or null for the default; any color set makes the pages light only. | |
| preview | No | Also render this page of the help center with the theme, as the settings card shows it: html is a whole document with its own policy, the help center style sheet linked under /help/_/, the brand inline and no script. | |
| logo_alt | No | What the logo says, for screen readers; empty uses the title. | |
| body_font | No | ||
| custom_css | No | 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 |
|---|---|---|---|
| ok | Yes | ||
| html | No | ||
| checks | Yes | ||
| fields | Yes |