add_pbir_visual
Add a visual to a Power BI report (PBIR) page by specifying type, fields, and layout, then get the new visual's GUID.
Instructions
Add a visual to a PBIR page: a fresh GUID folder definition/pages//visuals//visual.json. The query (projections + prototypeQuery) is built by the shared query builder. fields = JSON array of {role,table,field,kind} (kind=column|measure; role=Category|Y|Values|Rows|Columns|...). Returns the new visual GUID name.
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": {
"pbirSessionId": "<pbirSessionId>",
"page": "<page>",
"visualType": "<visualType>"
},
"name": "add_pbir_visual"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| page | Yes | page GUID name or displayName | |
| title | No | ||
| width | No | ||
| fields | No | JSON array of {role,table,field,kind} | [] |
| height | No | ||
| visualType | Yes | visual type id, e.g. clusteredColumnChart | tableEx | card | slicer | |
| pbirSessionId | Yes |