resize_page
Adjust a page's canvas to exact pixel dimensions, saving the size so it persists in Power BI Desktop. Provide the page and new width/height.
Instructions
Resize a page's canvas to an explicit width x height (pixels). Writes the section size + the pageSize object so it sticks in Desktop. For named presets use set_canvas_preset.
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": {
"reportSessionId": "<reportSessionId>",
"page": "<page>",
"width": "<width>",
"height": "<height>"
},
"name": "resize_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| width | Yes | canvas width in px | |
| height | Yes | canvas height in px | |
| reportSessionId | Yes |