update_cells
Update Google Spreadsheet cells in a specified range with plain values, formulas, or rich-text hyperlinks, using USER_ENTERED parsing for natural Sheets input.
Instructions
Update cells in a Google Spreadsheet.
Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet range: Cell range in A1 notation (e.g., 'A1:C10') data: 2D array of values to update. Each cell is normally a plain scalar (str/int/float/bool), parsed the same way as typing it into the Sheets UI (USER_ENTERED — formulas, dates, etc. are recognized). For a partial (rich-text) hyperlink or mixed-format run within a single cell, pass a list of run dicts instead, e.g. [{"text": "See "}, {"text": "docs", "hyperlink": "https://..."}] — each run's "text" is concatenated into the cell's literal string value (not USER_ENTERED-parsed) and an optional "hyperlink" links just that run.
Returns:
Result of the update operation. If data contains only plain cells
or only rich-text cells, this is that single API call's raw response.
If it mixes both kinds, this is
{"values_update": , "rich_text_update": }
since the two are separate API calls and neither result should be
silently dropped.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spreadsheet_id": "<spreadsheet_id>",
"sheet": "<sheet>",
"range": "<range>",
"data": "<data>"
},
"name": "update_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| range | Yes | ||
| sheet | Yes | ||
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||