refresh_bsheet_output_view
Refresh an output sheet view from an explicit successful run, keeping its sheet and tab IDs and Git history. Supply expected_sha for optimistic concurrency. Presentation hints and modes match create_bsheet_output_view; profiles are preserved by default and can be merged, replaced, or reset.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
presentation_mode | Annotated[Literal['preserve', 'merge', 'replace', 'reset'], Field(description='Durable profile operation: preserve the saved profile (default), merge supplied rules, replace it with a complete supplied profile, or reset it so refreshed schema and semantic defaults apply.')] | No | 'preserve' | |
presentation_profile | `Annotated[PresentationProfilePayload | None, Field(description=‘Validated workspace-shared selector profile for merge/replace. Omit it for preserve or reset; merge and replace require it when no column_hints or row_formats are supplied.’)]` | No | None |
model_name | Annotated[str, Field(description='Name of the Bridge Town model that owns the sheet and the run.')] | Yes | — | |
sheet_id | Annotated[str, Field(description='sheet_id of the existing output sheet view to refresh, as returned by create_bsheet_output_view, list_bsheets, or get_bsheet.')] | Yes | — | |
run_id | Annotated[str, Field(description='UUID (or unique prefix) of the newer completed model run to re-materialize the sheet view from.')] | Yes | — | |
follow_successful_runs | `Annotated[bool | None, Field(description=‘Set true to opt this view into normal run_model following, or false to pin it to this explicit run. Input-edit receipt, comparison, scheduled, upload, and explicitly tagged experiment runs cannot be selected for following. Omit to preserve the current policy.’)]` | No | None |
output_name | `Annotated[str | None, Field(description=“Name of the run output to render as the refreshed sheet. Defaults to the sheet’s current output_name (from its provenance) when omitted. Resolves with or without a trailing ‘.json’ when unambiguous.”)]` | No | None |
column_hints | `Annotated[list[ColumnFormatHint] | None, Field(description=‘Per-column presentation hints; refresh preserves the workspace-shared profile and applies these hints when supplied.’)]` | No | None |
emphasize_rows | `Annotated[list[int] | None, Field(description=“0-based data-row indices (header row excluded) to bold-emphasize — same contract as create_bsheet_output_view’s emphasize_rows.”)]` | No | None |
frozen_label_column | Annotated[bool, Field(description='Freeze the first column, in addition to the header row.')] | No | False | |
row_formats | `Annotated[list[RowFormatHint] | None, Field(description=“Per-row presentation hints, keyed by the exact value of the row’s first column — same contract as create_bsheet_output_view’s row_formats. Wins over column_hints for a matched row.”)]` | No | None |
branch | `Annotated[str | None, Field(description=“Branch for the sheet view. Defaults to the model’s unresolved branch; pass the exact branch for scenario-specific refreshes.”)]` | No | None |
expected_sha | Annotated[str, Field(description='Expected blob SHA-1 (40 hex chars) of the current sheet document path, for optimistic concurrency control -- pass the sha returned by a prior create_bsheet_output_view/refresh_bsheet_output_view/get_bsheet call. If the sheet was modified since, the call fails with a commit-conflict error. Omit to overwrite unconditionally.')] | No | '' | |
commit_message | Annotated[str, Field(description='Git commit message. If omitted, the server generates a default message.')] | No | '' | |
workspace_id | `Annotated[str | None, Field(description=WORKSPACE_ID_FIELD_DESCRIPTION)]` | No | None |
Returns
Section titled “Returns”Returns a structured object. Top-level fields:
schema_version(string)operation(string)outcome(string)artifact_type(string)occurred_at(string)warnings(array)warning_count(integer)warnings_truncated(boolean)open_link(object)open_url(string)open_url_state(string)open_url_reason(null)follow_up(array<object>)model_name(string)workspace_id(string)sheet_id(string)sheet_view_id(string)name(string)purpose(string)run_id(string)follow_successful_runs(boolean)run_branch(string)run_commit_sha(string)previous_run_id(string)output_name(string)branch(null)commit_sha(string)sha(string)tab_id(string)tab_count(integer)row_count(integer)column_count(integer)data_hash(string)presentation_hash(string)profile_version(integer)generated_at(string)calculation_status(string)
See the response example below for the full payload shape.
Example
Section titled “Example”Tool Call
Section titled “Tool Call”{ "name": "refresh_bsheet_output_view", "arguments": { "model_name": "forecasts", "sheet_id": "sht_7890a1b2c3d4e5f67890a1b2c3d4e5f6", "run_id": "77777777-7777-4777-8777-777777777777" }}Response
Section titled “Response”{ "schema_version": "artifact-mutation-receipt.v1", "operation": "refresh", "outcome": "refreshed", "artifact_type": "native_sheet_output", "occurred_at": "2026-04-28T10:00:00+00:00", "warnings": [], "warning_count": 0, "warnings_truncated": false, "open_link": { "url": "https://app.bridge-town.example/models/handoff?ws=dddddddd-dddd-dddd-dddd-dddddddddddd&model=forecasts&sheet_view_id=12121212-1212-1212-1212-121212121212", "unavailable_reason": null }, "open_url": "https://app.bridge-town.example/models/handoff?ws=dddddddd-dddd-dddd-dddd-dddddddddddd&model=forecasts&sheet_view_id=12121212-1212-1212-1212-121212121212", "open_url_state": "available", "open_url_reason": null, "follow_up": [ { "tool": "get_bsheet", "arguments": { "model_name": "forecasts", "sheet_id": "sht_7890a1b2c3d4e5f67890a1b2c3d4e5f6", "tab_id": "tab_890a1b2c3d4e5f67890a1b2c3d4e5f67", "workspace_id": "dddddddd-dddd-dddd-dddd-dddddddddddd", "row_start": 0, "row_limit": 50, "column_start": 0, "column_limit": 20 } } ], "model_name": "forecasts", "workspace_id": "dddddddd-dddd-dddd-dddd-dddddddddddd", "sheet_id": "sht_7890a1b2c3d4e5f67890a1b2c3d4e5f6", "sheet_view_id": "12121212-1212-1212-1212-121212121212", "name": "revenue_by_quarter (run 66666666)", "purpose": "output", "run_id": "77777777-7777-4777-8777-777777777777", "follow_successful_runs": false, "run_branch": "main", "run_commit_sha": "abc1234def5678901234567890abcdef12345678", "previous_run_id": "66666666-6666-6666-6666-666666666666", "output_name": "revenue_by_quarter", "branch": null, "commit_sha": "abc1234def5678901234567890abcdef12345678", "sha": "abc1234def5678901234567890abcdef12345678", "tab_id": "tab_890a1b2c3d4e5f67890a1b2c3d4e5f67", "tab_count": 1, "row_count": 6, "column_count": 3, "data_hash": "a1b2c3d4e5f678901a2b3c4d5e6f789012b3c4d5e6f7890a1b2c3d4e5f67890", "presentation_hash": "b1c2d3e4f5a678901b2c3d4e5f6a789012c3d4e5f6a7890b1c2d3e4f5a678901", "profile_version": 4, "generated_at": "2026-04-28T10:00:00+00:00", "calculation_status": "clean"}Presentation modes during refresh
Section titled “Presentation modes during refresh”presentation_mode controls the saved profile independently of the immutable
data rematerialization:
preserve(default): keep the saved profile; omitpresentation_profile.merge: merge the supplied rules into the saved rules.replace: replace all saved rules with the supplied complete profile.reset: delete the saved profile so refreshed schema and semantic defaults apply; omitpresentation_profile.
{"presentation_mode": "preserve"}{"presentation_mode": "merge", "presentation_profile": {"schema_version": 1, "rules": [{"selector_type": "column", "selector": "Amount", "format": {"kind": "currency", "currency_code": "EUR"}}]}}{"presentation_mode": "replace", "presentation_profile": {"schema_version": 1, "rules": [{"selector_type": "column", "selector": "Amount", "format": {"kind": "currency", "currency_code": "AED", "currency_display": "code"}}]}}{"presentation_mode": "reset"}These fragments are added to the normal model_name, sheet_id, run_id,
and expected_sha arguments. Read the returned effective profile/version, then
call get_bsheet to verify the refreshed tab.
- Module:
BSheets - Requires an authenticated Bridge Town session (OAuth) or an API token.