legal_put_theme
Set a site's banner theme preset and CSS custom properties in one all-or-nothing request; any invalid name or value rejects the entire update.
Instructions
Set the banner theme preset and/or individual CSS custom properties. All or nothing: one invalid name or value rejects the whole request (400, names in data.invalid). Returns { saved: true }.
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": {
"site": "<site>"
},
"name": "legal_put_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| vars | No | --cvrt-consent-* overrides (bg, fg, accent, radius, font, shadow, link, title, backdrop). REPLACES the stored overrides as a whole: send every override you want to keep, {} clears them. Values are plain CSS (no ; { } < \ or comments, max 200 chars). | |
| preset | No | Theme preset; an unknown preset renders as default |