insert_chart_from_template
Insert a column chart into a Power BI Report Builder .rdl report using an existing dataset, specifying category and value fields, position, and size.
Instructions
Build and append a basic Column chart to /. Single category axis grouped by category_field; single Y series Sum(Fields!<value_field>.Value). dataset_name must already exist. Change post-insert (e.g. to Bar / Line / Pie) by editing the chart directly.
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>",
"name": "<name>",
"dataset_name": "<dataset_name>",
"category_field": "<category_field>",
"value_field": "<value_field>",
"top": "<top>",
"left": "<left>",
"width": "<width>",
"height": "<height>"
},
"name": "insert_chart_from_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | ||
| left | Yes | ||
| name | Yes | ||
| path | Yes | ||
| width | Yes | ||
| height | Yes | ||
| value_field | Yes | ||
| dataset_name | Yes | ||
| category_field | Yes |