sb_theme
Read or update a site's color palette, type scale, presets, responsive breakpoints, and locale so one token change repaints every page.
Instructions
The site's palette and type scale — the layer every element's style preset resolves from, so one token repaints every page at once. Call it with nothing to read what the site actually has. colors and text_styles PATCH the saved document: what you do not name is kept, and so does presets (a preset's own literal outranks the text style). A mobile/tablet/laptop object writes that breakpoint. locale sets the site's language (settings.locale, what is served from) — site-wide, every other setting kept.
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": "sb_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | No | Token id -> CSS colour, e.g. { "heading": "#2E2A3B", "primary": "#E8557A" } | |
| locale | No | Site language tag, e.g. "vi" or "en" | |
| dry_run | No | ||
| presets | No | Preset id -> declarations, e.g. { "heading-default": { "fontFamily": "Inter" } } | |
| site_id | No | ||
| text_styles | No | Slug -> declarations, e.g. { "heading-3": { "fontSize": "20px", "mobile": { "fontSize": "18px" } } } |