restore_cell
Restore an Excel cell to its previous formula by reverting the oldest change recorded in the audit log. Optionally specify a timestamp to limit the search window.
Instructions
ModelRisk: Restore a cell to its pre-write state from the audit log. Reads %LOCALAPPDATA%\VoseSoftware\modelrisk-mcp\writes.log and rewrites the oldest captured before-formula for the cell. Pass since (ISO timestamp) to restrict the window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | ||
| sheet | Yes | ||
| since | No | Optional ISO-8601 timestamp. Restore the oldest write captured at or after this time. | |
| workbook | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | ||
| formula | Yes | ||
| written | Yes | ||
| previous_formula | No |