pbi_write_tmdl_file
Creates or overwrites a TMDL file in a Power BI project directory, enabling programmatic updates to semantic model definitions.
Instructions
Create or overwrite one TMDL file inside a Power BI Project definition folder.
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": {
"project_path": "<project_path>",
"relative_file": "<relative_file>",
"content": "<content>"
},
"name": "pbi_write_tmdl_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| create | No | ||
| content | Yes | ||
| project_path | Yes | ||
| relative_file | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |