publish_to_service
Publish .pbix or PBIP folders to Power BI Service via Import or Fabric APIs. Set workspace, conflict policy, and display name for deployment.
Instructions
Publish a built artifact to the Power BI Service: a .pbix path goes through the Import API (nameConflict CreateOrOverwrite by default); a PBIP folder (the tree generate_pbip/scaffold emit) is published at definition level via the Fabric items API - SemanticModel first, then Report, each created or updated in place. Needs an AAD access token with the Power BI scopes (accessToken param or DAXOPS_PBI_TOKEN); never echoed.
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": {
"path": "<path>",
"workspaceId": "<workspaceId>"
},
"name": "publish_to_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | path to a .pbix file OR a PBIP folder (the project root, or its <name>.SemanticModel) | |
| accessToken | No | AAD access token with Power BI scopes; omit to use DAXOPS_PBI_TOKEN | |
| workspaceId | Yes | target workspace (group) id | |
| nameConflict | No | pbix import conflict policy: CreateOrOverwrite (default), Ignore, Abort or Overwrite | CreateOrOverwrite |
| datasetDisplayName | No | dataset/item display name; defaults from the file/folder name |