update_sheet
Write to a range in a Google Sheet destructive
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.
Related tools
append_to_sheetAppend rows to a Google Sheetlist_sheet_tabsList the tabs in a Google Sheetclear_sheet_rangeClear a range in a Google Sheetmanage_sheet_tabsAdd, rename or delete a sheet tabformat_sheetFormat a Google Sheetupdate_docEdit a Google Doc in place