Skip to content

publish_run_output_to_google_sheet

Preview a bounded model-run output for an explicit Google Sheet destination; write only when confirmed=true.

NameTypeRequiredDefaultDescription
model_nameAnnotated[str, Field(description='Name of the Bridge Town model.')]Yes
run_idAnnotated[str, Field(description='UUID of a successful model run.')]Yes
output_nameAnnotated[str, Field(description='Named output artifact to publish.')]Yes
modeLiteral['replace', 'append']No'replace'
spreadsheet_id`Annotated[strNone, Field(description=‘Explicit Google Spreadsheet ID; provide this or source_name.’)]`NoNone
source_name`Annotated[strNone, Field(description=‘Explicit connected Sheet data-source name; provide this or spreadsheet_id.’)]`NoNone
cell_range`Annotated[strNone, Field(description=‘Required explicit A1 destination for replace mode.’)]`NoNone
sheet_nameAnnotated[str, Field(description='Explicit destination tab for append mode.')]No'Sheet1'
confirmedAnnotated[bool, Field(description='Set true only after reviewing the bounded preview.')]NoFalse
preview_rowsAnnotated[int, Field(ge=1, le=100)]No20
skip_headerboolNoFalse
workspace_id`Annotated[strNone, Field(description=WORKSPACE_ID_FIELD_DESCRIPTION)]`NoNone

Returns a structured object. Top-level fields:

  • mode (string)
  • source_name (string)
  • cell_range (string)
  • preview (array<array<string>>)
  • preview_rows (integer)
  • preview_truncated (boolean)
  • confirmed (boolean)
  • rows_to_write (integer)

See the response example below for the full payload shape.

{
"name": "publish_run_output_to_google_sheet",
"arguments": {
"model_name": "forecasts",
"run_id": "66666666-6666-6666-6666-666666666666",
"output_name": "forecast.json",
"source_name": "forecast_board",
"mode": "replace",
"cell_range": "Forecast!A1",
"confirmed": false,
"preview_rows": 20
}
}
{
"mode": "replace",
"source_name": "forecast_board",
"cell_range": "Forecast!A1",
"preview": [
[
"Month",
"Revenue"
],
[
"2026-01",
100
]
],
"preview_rows": 2,
"preview_truncated": false,
"confirmed": false,
"rows_to_write": 2
}
  • Module: Google Sheets
  • Requires authentication via API token or Auth0 JWT.