pbi_locate_pbip
Locate PBIP source code for a named dataset and optionally read a specific table's TMDL with its M source.
Instructions
Locate PBIP source code for a dataset (and optionally read a specific table's TMDL + M source).
Requires 'pbip_root' configured in config.json (path to local PBIP repo root, e.g. 'C:/repos/my-project/data/power-bi-report').
Args: dataset_name: Dataset name as it appears in Power BI Service (e.g. 'QC Compliance Report'). Folder match is fuzzy: case-insensitive + non-alphanumeric stripped. table_name: Optional table name. If provided and dataset found, reads that table's .tmdl and extracts its partition M source.
Returns: JSON with {status, matches[], optional table content + partition_source_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": {
"dataset_name": "<dataset_name>"
},
"name": "pbi_locate_pbip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_name | Yes | ||
| table_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |