Add Visual
pbir_add_visualAdd visuals to a Power BI report page using a single batch request with inline formatting, data bindings, and colors. Supports charts, cards, slicers, and shapes.
Instructions
Add visuals to a page via visuals: [...] batch. Inline containerFormat/visualFormat/dataColors per entry avoids extra pbir_format_visual calls. Stacked charts need a Series binding; 'KPI card' = card with one measure; scatter uses Category bucket. Use pbir_lookup_theme_property for valid category/property names.
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": {
"visuals": "<visuals>"
},
"name": "pbir_add_visual"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Auto-resolved when only one page exists. | |
| visuals | Yes | ||
| includeTypes | No | Return [{visualId,visualType}] instead of flat id list. | |
| strictLayout | No | true=strict, false=warn. Canvas 1280x720, 15px L/R / 6px bottom margins, 5px gaps. Omit for env default. | |
| strictBindings | No | true=strict, false=warn. Omit for env default. |