add_html_content_block
Add an HTML Content visual to a Power BI report and bind it to a DAX measure that returns HTML/CSS, enabling custom visuals.
Instructions
Add the HTML Content (lite) custom visual bound to a DAX measure that returns HTML/CSS: registers the visual type, adds the visual, and binds the measure to its content (values) role. daxHtmlMeasure = "Table[Measure]" (the measure must already exist and return an HTML string). visualGuid overrides the visual type id (confirm the certified guid in Desktop).
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>",
"page": "<page>",
"name": "<name>",
"daxHtmlMeasure": "<daxHtmlMeasure>",
"x": "<x>",
"y": "<y>",
"w": "<w>",
"h": "<h>"
},
"name": "add_html_content_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | ||
| w | Yes | ||
| x | Yes | ||
| y | Yes | ||
| name | Yes | a label/title for the visual | |
| page | Yes | page name or displayName | |
| visualGuid | No | override the HTML Content visual guid (optional) | |
| daxHtmlMeasure | Yes | the DAX HTML measure, "Table[Measure]" | |
| reportSessionId | Yes |