update_sheet_range
Overwrite a defined range in a Google Sheet with new values, leaving row positions unchanged. Use to set data at exact coordinates or edit existing cells in place.
Instructions
Write values into an explicit range, overwriting whatever is there.
Use this for deterministic placement (no auto-detection): to put a new
row exactly at row n, read the sheet first, then pass
range="Sheet1!A<n>". Also used to edit an existing row in place
(e.g. change a status cell). It overwrites the target cells but does
not shift other rows — use insert_sheet_rows when you need to add
a row between existing ones.
sheet_id is the spreadsheet's ID (from its URL) and is required.
range is A1 notation anchoring the top-left of the write, e.g.
Sheet1!A11 (the block grows to fit values) or an explicit
Sheet1!A11:E11. values is a list of rows, each a list of cell
strings — pass [["a", "b", "c"]] for a single row. Read the header
row first so columns line up. value_input_option USER_ENTERED parses
dates/numbers/formulas like typing; RAW stores text verbatim. Returns
the range that was written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| values | Yes | ||
| sheet_id | Yes | ||
| value_input_option | No | USER_ENTERED |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |