Back to Spreadsheet management

Spreadsheet Values Batch Update

Google Drive

Replace values in multiple Google Sheets ranges.

Current price
$0.0050/call
Availability
Connected app
Last accepted verification

What this API does

Writes up to 100 value ranges with one input interpretation and optional returned values. Always one upstream request at $0.0050.

Agents select this operation with tool ID google-drive.spreadsheet-values-batch-update, then inspect its current executable contract before a run.

Public input and output shape

Input

bodyobject · required

Bounded request body sent to the connected application.

pathobject · required

Identifier path for the authorised connected-app record.

Output

spreadsheetIdstring

Returned spreadsheet id value.

totalUpdatedCellsnumber

Returned total updated cells value.

totalUpdatedColumnsnumber

Returned total updated columns value.

totalUpdatedRowsnumber

Returned total updated rows value.

Example request and output

This reviewed worked example is shared with inspect. Inspect also returns the current executable schema and price estimate before a paid run.

Request

{
  "tool_id": "google-drive.spreadsheet-values-batch-update",
  "input": {
    "body": {
      "data": [
        {
          "range": "Plan!A3:C3",
          "values": [
            [
              1,
              2,
              3
            ]
          ]
        }
      ],
      "valueInputOption": "RAW"
    },
    "path": {
      "spreadsheetId": "YOUR-GOOGLE-SHEETS-SPREADSHEET-ID"
    }
  }
}

Output

{
  "spreadsheetId": "spreadsheet-output-id",
  "totalUpdatedRows": 1,
  "totalUpdatedCells": 3,
  "totalUpdatedColumns": 3
}
Teaching errors and limitations
  • connection_required: This capability acts on the connected Google Workspace, which is not available yet.Open connect_url, approve Google Drive access, then retry this run unchanged.
Updated
22 August 2026

Use Spreadsheet Values Batch Update with Scrollport

Scrollport validates tools for connected apps and provides them on a pay-as-you-go basis so your agent can use accounts you already own without receiving sensitive API keys.

Give your agent the setup prompt to receive $1 in trial credit and start using the tools right away.