update_sheet_values
Writes or updates cell values in a Google Sheets spreadsheet for a specified A1 range, enabling AI assistants to modify sheet data programmatically.
Instructions
Update cell values in a Google Sheets spreadsheet
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_sheet_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | The A1 notation range to update (e.g., "Sheet1!A1:B10"). | |
| values | Yes | 2D array of values to write. | |
| spreadsheetId | Yes | The ID of the spreadsheet. | |
| valueInputOption | No | Optional. How input data should be interpreted (default: USER_ENTERED). |