connect_model
Connect to an open Power BI Desktop model to get a session ID for all model tools. Interactive only—unattended jobs should launch their own Desktop.
Instructions
UNSAFE-FOR-PIPELINE (interactive attach only): connects to a Power BI Desktop model a human already has open and returns a sessionId used by all model tools. Omitting port attaches to the most recently written workspace port, which is a guess, not a guarantee. Unattended jobs must launch their own Desktop instead of attaching.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Loopback port from list_open_models. Omit to attach to the newest live workspace port. |