Update cells
update_cellsWrites values into a specified range, overwriting existing cells. Strings starting with '=' become formulas, and dates and numbers are recognized.
Instructions
Write values into a range in place, overwriting existing cells. Values are parsed as if typed in the Sheets UI, so strings starting with '=' become formulas, and dates/numbers are recognized.
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": {
"spreadsheetId": "<spreadsheetId>",
"range": "<range>",
"values": "<values>"
},
"name": "update_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | A1 range to write, e.g. "B2" or "A1:C3". The values array is anchored at its top-left cell. | |
| sheet | No | Sheet (tab) name; defaults to the first sheet | |
| values | Yes | 2D array of cell values, one inner array per row | |
| literal | No | If true, store values exactly as given (no formula or date parsing) | |
| spreadsheetId | Yes | Spreadsheet ID or full Google Sheets URL |