pbi_update_visual_bindings
Update an existing visual's field bindings by replacing all roles or incrementally adding/removing fields, without recreating the visual.
Instructions
Update an existing visual's field bindings without removing and recreating it. Modes:
projections: full replacement of all roles. dict keyed by role name (e.g."Category","Y","Values"); each value is a list of field references ("Table.Column"for columns or bare measure names).add_to_role/remove_from_role: incremental edits to specific roles. Same value shape. Roles that end up empty after a remove are dropped fromprojections.
projections is mutually exclusive with the incremental params.
Roles are validated against VISUAL_FIELD_ROLES[visual_type]; field
references are validated against the live model when manager is
supplied. The prototypeQuery is rebuilt from the new reference set
so Power BI Desktop renders the visual correctly. dry_run=True runs
every check but skips the layout disk write.
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": {
"extract_folder": "<extract_folder>",
"page": "<page>",
"visual_id": "<visual_id>"
},
"name": "pbi_update_visual_bindings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| dry_run | No | ||
| visual_id | Yes | ||
| add_to_role | No | ||
| projections | No | ||
| extract_folder | Yes | ||
| include_hidden | No | ||
| remove_from_role | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |