propose_change
Propose and validate an exact text replacement in a Power BI file copy and return a diff, affected objects, and risk for approval before editing.
Instructions
STEP 1 of any edit. Proposes replacing exact old_text with new_text in a file (.pbix .pbit .pbip
.pbir .pbids .rdl .tmdl or PBIR .json). Changes NOTHING: validates the result and returns a diff, the
affected objects and the risk. For .pbix/.pbit pass member. old_text must match exactly
expected_count places. Show the user the diff verbatim and wait for explicit approval.
Editing works only on COPIES inside the folder named by the PBI_MCP_EDIT_ROOT environment variable
(off when unset); originals elsewhere are refused.
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": {
"path": "<path>",
"old_text": "<old_text>",
"new_text": "<new_text>",
"reason": "<reason>"
},
"name": "propose_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| member | No | ||
| reason | Yes | ||
| new_text | Yes | ||
| old_text | Yes | ||
| expected_count | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||