preview_changes
Dry-run spreadsheet edits on a temporary branch to see affected cells and cascaded recalculations without committing. Compare multiple scenarios independently, optionally watching specific cells.
Instructions
Dry-run edits on the workbook's temp branch and report what they would do. Nothing is committed — the branch is discarded, so this is the safe way to explore a model instead of changing it and putting it back.
Two shapes. changes runs one hypothetical and returns every cell that would move, direct writes and cascaded recalculations alike. scenarios runs several, each on its own branch, and returns one result per scenario in order — that is a sensitivity table or a scenario comparison in a single call.
Add watch to get just the cells you care about instead of the whole cascade. A grid of sixteen scenarios over a model that cascades into 26 cells is 416 rows of diff to answer sixteen questions; watch makes it sixteen numbers. Name a cell semantically ({block, row_key, field}) or by coordinate ({sheet_idx, row, col}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| watch | No | Report only these cells' values instead of the full diff. Name each one semantically or by coordinate. | |
| changes | No | One hypothetical. Use `scenarios` for more than one. | |
| scenarios | No | Several hypotheticals, each evaluated independently. Results come back in this order. |