pbi_persist_now
Save the open Power BI Desktop file (PBIX) by sending Ctrl+S. Requires user confirmation and UI automation permission.
Instructions
Trigger Power BI Desktop to save the open PBIX (Ctrl+S in the UI).
The Tabular engine has no programmatic save — every TOM mutation lives in memory until the user presses Ctrl+S. This tool drives that key chord through Win32 keyboard injection on the connected Desktop instance's main window.
Hard gates (both required):
The server process must have
PBI_MCP_ALLOW_UI_AUTOMATION=1set in its environment before launch.The caller must pass
confirm=Trueper call.
Either gate failing returns a structured error without acting. The
automation only sends Ctrl+S; no other key sequences are emitted.
Parameters
pbix_path:
Optional. When provided, the call polls the file's modification
timestamp for up to timeout_seconds after sending Ctrl+S, and
reports the observed delta in the response. Without it the call
returns immediately after key injection.
confirm:
Must be True. Refusing-by-default avoids accidental focus
steals from other tools.
timeout_seconds:
Bound on how long to wait for pbix_path mtime to change.
Clamped to [1, 60].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| pbix_path | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |