export_dataflow_modeljson
Exports a Power BI dataflow model.json file to disk from entity definitions, including M queries and attribute data types.
Instructions
Export a Power BI dataflow model.json to disk from a set of entity definitions. entities is a JSON array of {name, m, attributes:[{name,dataType}]} where m is the entity's full M query and dataType = string|int64|double|decimal|date|dateTime|time|boolean|guid. The query mashup is embedded at the root pbi:mashup.document. FLAG: the inner pbi:mashup layout is best-known, NOT verified against a real export.
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>",
"dataflowName": "<dataflowName>",
"entities": "<entities>",
"outputPath": "<outputPath>"
},
"name": "export_dataflow_modeljson"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| culture | No | culture (default en-US) | |
| entities | Yes | JSON array of {name, m, attributes:[{name,dataType}]} | |
| sessionId | Yes | ||
| outputPath | Yes | output file path for model.json | |
| dataflowName | Yes | the dataflow name |