convert_legacy_to_pbir
Convert legacy .pbix or Layout JSON reports into a structured PBIR definition tree with GUID-named pages and visuals. Best-effort conversion; validate in Power BI Desktop.
Instructions
BEST-EFFORT explode a legacy Report/Layout (.pbix or a raw Layout JSON file) into a PBIR definition tree written to a target folder (default .Report next to the source): pages -> page.json, visualContainers -> visual.json, generating GUID names. Returns a pbirSessionId over the new tree. FLAG: best-effort - open in Power BI Desktop to validate/upgrade. pbir->legacy is not implemented.
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": {
"legacyPath": "<legacyPath>"
},
"name": "convert_legacy_to_pbir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legacyPath | Yes | absolute path to the legacy .pbix (or a raw Report/Layout JSON file) | |
| targetFolder | No | target folder for the PBIR tree (optional; defaults to <name>.Report beside the source) |