Raw batchUpdate
sheets_batch_update_rawSend literal Google Sheets API v4 Request objects to apply any spreadsheet change, including charts and pivot tables, with a dry-run preview.
Instructions
Send literal Sheets API v4 Request objects. Covers the entire API, including charts, pivot tables, slicers and developer metadata, which the grouped tools do not wrap. GridRange indices are zero-based and end-exclusive. Take sheetId values from sheets_describe, and run with dryRun first when the request shape is not obvious.
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": "<spreadsheet>",
"requests": "<requests>"
},
"name": "sheets_batch_update_raw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | When true, returns the exact API request that would be sent plus an impact summary, and sends nothing. | |
| account | No | Google account to act as. Optional when one account is authorised or a default is set; required otherwise. | |
| requests | Yes | Literal Sheets API v4 Request objects, e.g. [{"updateSheetProperties": {...}}, {"addChart": {...}}]. Full API coverage, including charts, pivot tables and developer metadata. GridRange indices are ZERO-BASED and END-EXCLUSIVE: A1:B2 is {startRowIndex:0,endRowIndex:2,startColumnIndex:0,endColumnIndex:2}. Get sheetId values from sheets_describe — never guess one. Run with dryRun first when the request shape is not obvious. | |
| spreadsheet | Yes | Spreadsheet URL or file id. Both accepted; a URL has its id extracted. | |
| includeSpreadsheetInResponse | No |