recolor_report
Recolor a Power BI report's visuals and theme in one call by providing a JSON map of old to new hex colors. It preserves each color's formatting and reports per-color replacement counts.
Instructions
Find/replace colour literals across ALL visuals and the theme in one call: colorMap = JSON {"#OLD":"#NEW", ...}. Handles both the plain theme spelling (#RRGGBB) and the quoted expr spelling ('#RRGGBB') inside visual objects, preserving each occurrence's form. Returns per-colour replacement counts; run save_report to persist.
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>",
"colorMap": "<colorMap>"
},
"name": "recolor_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colorMap | Yes | JSON object of oldColour -> newColour hex literals | |
| reportSessionId | Yes |