apply_workbook_changeset
Preview or commit multiple Excel workbook mutations as one transaction, using assertions to verify expected changes before they are applied.
Instructions
Preview or commit an assertion-backed group of workbook mutations as one transaction.
Each operation is {"tool": "name", "args": {...}}. Supported tool names are
create_worksheet, write_data_to_excel, format_range, format_ranges, freeze_panes,
set_autofilter, set_column_widths, set_row_heights, autofit_columns, create_table,
and create_chart. Assertions support sheet_exists, cell_equals, range_equals,
range_values_unchanged, table_exists, freeze_panes_equals, autofilter_equals,
chart_exists, and no_cell_ref_errors.
Call preview first. Commit the identical plan with expected_workbook_sha256 and
changeset_token from that preview. Snapshot creation defaults to enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | preview | |
| filepath | Yes | ||
| assertions | No | ||
| operations | Yes | ||
| sample_limit | No | ||
| changeset_token | No | ||
| create_snapshot | No | ||
| snapshot_filepath | No | ||
| expected_workbook_sha256 | No |