pq_get_queries
Reads all Power Query M partitions from expressions.tmdl across tables, shared expressions, and parameters, with optional table filtering, to inspect and reuse queries in a Power BI project.
Instructions
Read all Power Query M partitions across tables and shared expressions/parameters from expressions.tmdl.
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": {
"projectPath": "<projectPath>"
},
"name": "pq_get_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tableName | No | Optional table name filter | |
| projectPath | Yes | Path to the .pbip file or project root folder |