hermosodocs

clear_sheet_range

Clear 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

Empty a range of cells in a Google Sheet, leaving the rows themselves in place. DESTRUCTIVE: call it WITHOUT confirm first and nothing is cleared — you get back the real number of filled cells in that exact range. Show the user that number, get an unambiguous yes, then call again with confirm:true AND confirmCells set to it. The echo is not ceremony: it is what catches naming A1:Z1000 when you meant A1:Z10, which is the mistake that actually happens. There is deliberately NO default range. The clear is read back and reported as confirmed only if the range really is empty afterwards. To remove a whole tab instead, use manage_sheet_tabs.

Parameters

ParameterTypeDescription
spreadsheetIdstringGoogle spreadsheet id; use this or sheetUrl
sheetUrlstringGoogle Sheets link, instead of spreadsheetId
rangerequiredstringthe range to clear, e.g. "A2:D50" or "Sheet1!A2:D50"
confirmbooleantrue clears the range; call without it first to get the filled-cell count
confirmCellsnumberecho back the filled-cell count the unconfirmed call reported

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/clear_sheet_range.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"clear_sheet_range","arguments":{"range":"<string>"}}}

CLI

hermoso call clear_sheet_range --json '{"range":"<string>"}'

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