commit_workspace_to_git
Exports a Fabric workspace and commits its reports and semantic models as PBIP files to a local Git repository for backup and version control.
Instructions
Export and commit a Fabric workspace into a local Git repository.
Use this tool when the user asks to:
Back up or version-control a Fabric workspace into Git.
Snapshot reports and semantic models into local PBIP files with Git commits.
Args: workspace_id: Source Fabric workspace ID (UUID). output_repo_path: Local path to destination Git repository. branch: Git branch to commit into. commit_message: Commit message describing the snapshot. exclude_items: Optional list of item IDs to exclude. auth_mode: Optional auth mode ("interactive", "service_principal", "managed_identity"). tenant_id: Optional Azure AD tenant ID. client_id: Optional Azure AD client ID. dry_run: If True, inspect items without creating git commits. fabric_client: Optional injected bridge/client (for testing).
Returns: Dict with committed items, commit SHA, and repository status.
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": {
"workspace_id": "<workspace_id>",
"output_repo_path": "<output_repo_path>"
},
"name": "commit_workspace_to_git"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | ||
| dry_run | No | ||
| auth_mode | No | ||
| client_id | No | ||
| tenant_id | No | ||
| workspace_id | Yes | ||
| exclude_items | No | ||
| fabric_client | No | ||
| commit_message | No | ||
| output_repo_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||