# Hermoso: update_sheet: Write to a range · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/files/update_sheet/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Files & documents](https://hermoso.ai/docs/reference/files/) / update_sheet

# `update_sheet`

Write to a range in a Google Sheet destructive

Area: The Sheets / Docs WRITE surface · [Files & documents](https://hermoso.ai/docs/reference/files/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

CORRECT cells in a Google Sheet — write values to an exact range, overwriting whatever is there. This is the fix append_to_sheet cannot make: appending only ever adds rows at the bottom, so without this a wrong number stays wrong forever and the only "correction" is a second row contradicting the first. Pass `range` (e.g. "B2:C5", or "Q3 Report!B2" to name a tab — list_sheet_tabs gives the names) and `values` as an array of row arrays; an anchor cell like "B2" is fine and the block is written down and right from it. Writing into EMPTY cells goes straight through. Writing OVER cells that already hold values is REFUSED first, naming exactly how many filled cells would be overwritten — show the user that, get a yes, then call again with confirm:true. The result is READ BACK from the sheet, so what you report is what the sheet now holds rather than what Google accepted.

## Parameters

Parameter Type Description

`spreadsheetId` `string` Google spreadsheet id; use this or sheetUrl

`sheetUrl` `string` Google Sheets link, instead of spreadsheetId

`range` `string` A1 range or anchor cell, e.g. "B2:C5", "B2", or "Q3 Report!B2" (default A1)

`values` `string | number | boolean[][]` array of row arrays to write

`updates` `object[]` write SEVERAL disjoint ranges in one call, instead of range+values

`updates[].range` `string` A1 range or anchor cell for this block, e.g. B2:C5 or Q3!B2

`updates[].values` `string | number | boolean[][]` rows for this block, as an array of row arrays

`valueInputOption` `"USER_ENTERED" | "RAW"` USER_ENTERED (default) parses formulas, dates and numbers the way typing them would; RAW stores every value as literal text

`confirm` `boolean` required only when the target range already holds values

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/update_sheet`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_sheet","arguments":{}}}`
**CLI**

`hermoso call update_sheet --json '{}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [append_to_sheet](https://hermoso.ai/docs/reference/files/append_to_sheet/) Append rows to a Google Sheet
- [list_sheet_tabs](https://hermoso.ai/docs/reference/files/list_sheet_tabs/) List the tabs in a Google Sheet
- [clear_sheet_range](https://hermoso.ai/docs/reference/files/clear_sheet_range/) Clear a range in a Google Sheet
- [manage_sheet_tabs](https://hermoso.ai/docs/reference/files/manage_sheet_tabs/) Add, rename or delete a sheet tab
- [format_sheet](https://hermoso.ai/docs/reference/files/format_sheet/) Format a Google Sheet
- [update_doc](https://hermoso.ai/docs/reference/files/update_doc/) Edit a Google Doc in place

[All 37 Files & documents tools](https://hermoso.ai/docs/reference/files/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
