Skip to content

write_google_sheet_range

Overwrite one explicit Google Sheet range with cell values.

NameTypeRequiredDefaultDescription
model_nameAnnotated[str, Field(description='Name of the Bridge Town model.')]Yes
valuesAnnotated[list[Annotated[list[Any], Field(min_length=1, max_length=1000)]], Field(min_length=1, max_length=10000, description='Bounded rows and cell values to write.')]Yes
cell_rangeAnnotated[str, Field(min_length=1, max_length=200, description='Explicit A1 destination, including the tab name.')]Yes
spreadsheet_id`Annotated[strNone, Field(description=‘Google Spreadsheet ID; provide this or source_name.’)]`NoNone
source_name`Annotated[strNone, Field(description=‘Connected Sheet data-source name; provide this or spreadsheet_id.’)]`NoNone
value_input_optionLiteral['RAW', 'USER_ENTERED']No'RAW'
workspace_id`Annotated[strNone, Field(description=WORKSPACE_ID_FIELD_DESCRIPTION)]`NoNone

Returns a structured object. Top-level fields:

  • spreadsheet_id (string)
  • ranges_written (integer)
  • total_rows (integer)

See the response example below for the full payload shape.

{
"name": "write_google_sheet_range",
"arguments": {
"model_name": "forecasts",
"cell_range": "Forecast!A1:B3",
"values": [
[
"Month",
"Revenue"
],
[
"2026-01",
100
],
[
"2026-02",
110
]
],
"spreadsheet_id": "1aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789ABCDEFG"
}
}
{
"spreadsheet_id": "1aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789ABCDEFG",
"ranges_written": 1,
"total_rows": 3
}
  • Module: Google Sheets
  • Requires authentication via API token or Auth0 JWT.