sheets_values_update
Writes values to a specified spreadsheet range, replacing existing data; use when you need to update cells but accept that prior values are overwritten.
Instructions
Write values to a spreadsheet range. Overwrites the values already in the range; the previous values are not kept, so this tool is marked destructive.
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>",
"valueInputOption": "<valueInputOption>",
"values": "<values>"
},
"name": "sheets_values_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | A1 notation range to write | |
| values | Yes | 2D array of values as JSON string (e.g. '[["A","B"],["C","D"]]') | |
| spreadsheetId | Yes | The spreadsheet ID | |
| valueInputOption | Yes | RAW or USER_ENTERED |