set_theme_structural_colors
Set structural colors in a Power BI report theme using a JSON object of hex values for elements like background and tableAccent. Only supplied colors are updated; run generate_theme first.
Instructions
Set the report theme's STRUCTURAL colours. colors = JSON object with any of: firstLevelElements, secondLevelElements, thirdLevelElements, fourthLevelElements, background, secondaryBackground, tableAccent (foreground is an alias of firstLevelElements). Each value is a hex colour; only supplied keys change. 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>",
"colors": "<colors>"
},
"name": "set_theme_structural_colors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | Yes | JSON object of structural key -> hex | |
| reportSessionId | Yes |