set_page_display
Configure a page's display option (FitToPage, FitToWidth, ActualSize) and visibility (AlwaysVisible or HiddenInViewMode) to manage canvas sizing and viewer access in Power BI.
Instructions
Set a page's DISPLAY OPTION (how the canvas fits the screen: FitToPage|FitToWidth|ActualSize) and/or its VISIBILITY (AlwaysVisible|HiddenInViewMode - hide the page from viewers). Both optional; set at least one.
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>"
},
"name": "set_page_display"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| visibility | No | AlwaysVisible | HiddenInViewMode | |
| displayOption | No | FitToPage | FitToWidth | ActualSize | |
| reportSessionId | Yes |