edit_report_visual
Modify a Power BI report visual by changing its chart type, fields, formatting, layout, alt text, or visibility on a PBIR page.
Instructions
Modify a visualContainer in a PBIR report page (type, fields, formatting, layout).
Use this tool when the user asks to:
Edit, reformat, or resize a specific chart/visual on a report page.
Change visual fields, bindings, alt text, or visibility.
Args: pbip_path: Path to the root .pbip directory. page_name: Name of the page containing the visual. visual_id: Unique ID of the visualContainer to edit. type: New visual type if changing (e.g. "barChart", "lineChart", "card"). fields_json: Optional dict or JSON string specifying field bindings to update. format_json: Optional dict or JSON string specifying formatting options. position_json: Optional dict or JSON string with x, y, width, height layout. alt_text: New alt text for accessibility. is_hidden: Whether to hide the visualContainer.
Returns: Dict with success status, changes applied, and page path.
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": {
"pbip_path": "<pbip_path>",
"page_name": "<page_name>",
"visual_id": "<visual_id>"
},
"name": "edit_report_visual"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| alt_text | No | ||
| is_hidden | No | ||
| page_name | Yes | ||
| pbip_path | Yes | ||
| visual_id | Yes | ||
| fields_json | No | ||
| format_json | No | ||
| position_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||