hermosodocs

update_sheet

Write to a range in a Google Sheet destructive

Area: The Sheets / Docs WRITE surface · Files & documents. Generated from the running MCP server, like the rest of the tool 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

ParameterTypeDescription
spreadsheetIdstringGoogle spreadsheet id; use this or sheetUrl
sheetUrlstringGoogle Sheets link, instead of spreadsheetId
rangestringA1 range or anchor cell, e.g. "B2:C5", "B2", or "Q3 Report!B2" (default A1)
valuesstring | number | boolean[][]array of row arrays to write
updatesobject[]write SEVERAL disjoint ranges in one call, instead of range+values
updates[].rangestringA1 range or anchor cell for this block, e.g. B2:C5 or Q3!B2
updates[].valuesstring | 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
confirmbooleanrequired 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.

All 37 Files & documents tools · tools.json