unpack_to_source
Unpack a .pbix into a deterministic, text-only source tree (TMDL and report JSON) that diffs cleanly under git, making Power BI files version-controllable.
Instructions
Unpack a .pbix into a deterministic, text-only, git-committable source tree: Model/definition (TMDL from the live session model) + Report/ (legacy Layout canonicalised to Layout.json, or the full PBIR definition tree). Same inputs always produce byte-identical output, so the tree diffs cleanly under git. Refuses to overwrite a folder that is not empty or a previous unpack.
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": {
"sessionId": "<sessionId>",
"pbixPath": "<pbixPath>",
"outputFolder": "<outputFolder>"
},
"name": "unpack_to_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pbixPath | Yes | path to the .pbix (supplies the report half) | |
| sessionId | Yes | sessionId from connect_model (the live model supplies the TMDL half) | |
| outputFolder | Yes | output folder for the source tree (wiped only if empty or a previous unpack) |