Set style
set_styleSet CSS on one element — padding, margin, background, colour, font size, alignment, gap, border-radius. Applied with !important so it survives the site's own runtime. Pass an empty string for a property to hand it back to the original design.
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": {
"siteId": "<siteId>",
"route": "<route>",
"tag": "<tag>",
"key": "<key>",
"css": "<css>"
},
"name": "set_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | Yes | CSS properties in kebab-case, e.g. {"padding-top":"96px","background":"#0b0b0f"} | |
| key | Yes | key from get_page_outline, or the element's exact text | |
| tag | Yes | tag from get_page_outline (or get_page_text for a text element) | |
| route | Yes | ||
| scope | No | "page" (default) styles this route only. "site" applies wherever the element appears. | |
| siteId | Yes |