update_visual_fields
Add or remove measures and columns on a Power BI visual while preserving its existing styling and layout. Supports field roles and dry-run change plans before writing.
Instructions
Add or remove measures and columns on a visual without modifying visual styling or layout.
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": {
"visual_id_or_title": "<visual_id_or_title>"
},
"name": "update_visual_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Optional page name or ID. | |
| dry_run | No | When true, return the proposed ChangePlan without modifying files. Defaults to true. Set false to execute the write with post-write validation. | |
| workspace | No | Workspace identifier returned by list_workspaces (prefer workspace_id or unique name). Optional when the server is bound to a single workspace. | |
| add_fields | No | Fields to add, e.g. ['Sales[Total Revenue]'] or [{'field': 'Customer[Region]', 'role': 'Category'}]. | |
| remove_fields | No | Fields to remove, e.g. ['Sales[Total Cost]'] or ['Total Cost']. | |
| visual_id_or_title | Yes | Visual ID or human-readable title of the visual to edit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||