add_rectangle
Add a rectangle to a Power BI Report Builder report. Optionally move existing body items into the rectangle while preserving their on-screen positions.
Instructions
Add a to /. With no contained_items the rectangle is empty (a visual frame). With contained_items=[name1, name2, ...], each named body item is MOVED into the rectangle's and its / recalculated so the on-screen position is preserved. Refuses on duplicate name or if any contained_item isn't in /. Returns {name, kind: 'Rectangle', moved}.
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>",
"top": "<top>",
"left": "<left>",
"width": "<width>",
"height": "<height>"
},
"name": "add_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | ||
| left | Yes | ||
| name | Yes | ||
| path | Yes | ||
| width | Yes | ||
| height | Yes | ||
| contained_items | No | Optional names of existing body items to move into the rectangle. Omit or pass [] for an empty rectangle (visual frame). |