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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "connect_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Loopback port from list_open_models. Omit to attach to the newest live workspace port. |