add_theme_visual_style_preset
Add a named visual-style preset to a theme, enabling visuals to opt into a defined look. Specify card-level properties such as font size, bold, and background color.
Instructions
Add a NAMED visual-style PRESET to the theme so a visual can opt into a look (theme.visualStyles[visualType][presetName]). cardProperties = JSON object of cardName -> property map or array, e.g. {"title":{"fontSize":14,"bold":true},"background":{"show":true,"color":{"solid":{"color":"#FFFFFF"}}}}. Run generate_theme first.
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": {
"reportSessionId": "<reportSessionId>",
"visualType": "<visualType>",
"presetName": "<presetName>",
"cardProperties": "<cardProperties>"
},
"name": "add_theme_visual_style_preset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| presetName | Yes | the preset name shown in the style gallery | |
| visualType | Yes | canonical visualType key, e.g. lineChart, tableEx | |
| cardProperties | Yes | JSON object of cardName -> property map/array | |
| reportSessionId | Yes |