extract_power_query
Extract the complete Power Query M code and query names from a .pbix file's DataMashup part. Read-only access to the underlying M definitions for auditing or analysis.
Instructions
Extract the full Section1.m (the plain-text Power Query M for every query) from a .pbix's DataMashup part, plus the declared query names. READ-ONLY. If there is no DataMashup part, the M is in the DataModel/TMDL - use get_table_m.
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": {
"pbixPath": "<pbixPath>"
},
"name": "extract_power_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pbixPath | Yes | absolute path to the .pbix |