set_chart_legend
Configure chart legend position and visibility in Power BI Report Builder paginated reports. Supports multiple positions and toggling hidden state.
Instructions
Configure a chart legend: position (TopLeft / TopCenter / TopRight / LeftTop / LeftCenter / LeftBottom / RightTop / RightCenter / RightBottom / BottomLeft / BottomCenter / BottomRight) and visible (writes true|false). legend_name defaults to 'Default' (the only one the template emits). Returns {chart, legend, kind, changed: list[str]}; no-op short-circuit when nothing supplied.
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": {
"path": "<path>",
"chart_name": "<chart_name>"
},
"name": "set_chart_legend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| visible | No | ||
| position | No | ||
| chart_name | Yes | ||
| legend_name | No | Default |