pbi_dialog
Automates Power BI Desktop dialogs by reading their content or clicking buttons, with safety checks to prevent accidental saves.
Instructions
Automate a Desktop dialog (desktopDialogHost CDP target — exists ONLY while a dialog is showing). action:"read" returns {open, text, buttons}; action:"click" trusted-clicks the button matching button (exact, then case-insensitive contains). Returns {open:false, reason:"no dialog showing"} when none is up. SAFETY: a button labelled "Save" (any case) is refused UNLESS the button param is EXACTLY "Save" (case-sensitive) — protects against accidentally saving the report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| button | No | Label to click (required for action:"click") |