Change how a site looks
set_brandingChange how a site looks: its theme, main colour, typeface, header links, logo and icon, and whether it has an Articles section. Only the site's owner can do this. Give only the things to change; the rest stay as they are. The changes show from the site's next publish. Every look change (theme, Articles, colour, typeface, header links, logo and icon) waits for the owner to publish; until then it shows in the site's preview. Before turning Articles on, tell the owner that readers won't see anything yet: they can look at it in the site's Preview, change anything, then publish, or ask to turn it off again. Offer to move pages that read like articles (comparisons, guides, news) under /articles with propose_edit; moved pages keep their old addresses. Page text is changed with propose_edit, not here. A logo or icon is taken from an address you give; say images_are_ours: true only when the owner has told you the pictures are theirs to use — otherwise they are kept but not shown until the owner confirms them on the site's preview. site_name is the name shown at the top of every page, not the web address: a preview's web address is chosen when it is kept, as claim_draft's or publish's subdomain, and no argument here changes it. On a preview nobody has kept yet, give its draft_id to set its name or its logo. Give languages to change the language the site's own words — Previous, Next, Search — are in.
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": "set_branding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | The typeface: system, serif, mono, humanist, grotesque. | |
| site | No | Which site: its name (like Acme Docs), its Documarium address (like acme.documarium.com) or the short name in that address (like acme); a custom domain is not accepted. Leave it out when this connection covers one site; when it covers several and site is left out, nothing is done and the answer names them. A preview is not one of these sites; draft_id names a preview. | |
| theme | No | The theme preset: base, slab, space or paper. | |
| articles | No | true turns on the Articles section: pages under /articles become dated posts, listed newest first at /articles and left out of the docs sidebar. false turns it off, and those pages go back into the sidebar as ordinary pages. | |
| draft_id | No | Which preview: the draft_id create_preview returned, a 43-character key of letters, digits, - and _ (stray quotes or punctuation around it are ignored). It is not the code in the preview's link. Leave it out for a kept site, which site names. | |
| icon_url | No | A direct https address of the small icon for the browser tab: PNG, JPEG, WebP or SVG, up to 1 MB. It is fetched once from that address; an address that redirects, is private or is not https is refused. | |
| logo_url | No | A direct https address of the logo — PNG, JPEG, WebP or SVG, up to 1 MB. An empty value removes the logo. | |
| languages | No | The site's language as a code, like en, ru or pt-BR — the language every page, title and heading is written in. | |
| site_name | No | The name shown at the top of every page. | |
| header_links | No | Up to 4 links for the header, each a label and an address starting with https://. They replace the current set. | |
| primary_color | No | The main colour as a hex code of six or three digits, with or without #, like #2e5fa3 or #25a. A colour that would not stay readable on light and dark screens is refused. | |
| images_are_ours | No | Say true only when the owner has told you the pictures are theirs to use. Otherwise they are kept but not shown until the owner confirms them. | |
| logo_shows_name | No | true when the logo image itself spells the name, so the name is not printed again beside it. Leave it out otherwise. |