preview_changes
Show a unified diff of the in-memory tree against the opened or last saved file to see exactly what saving would change, including added, removed, and modified line counts.
Instructions
Show a unified diff of the in-memory tree against the file as opened (or as last
saved), so you can see exactly what save_tree would change. stats counts added,
removed and modified lines; dirty is false when nothing differs. The diff is cut after
max_lines lines.
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": {
"tree_id": "<tree_id>"
},
"name": "preview_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_id | Yes | ||
| max_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||