Create and edit spreadsheets programmatically with data manipulation and formatting capabilities
Google Sheets allows you to create and modify spreadsheets programmatically. You can create new spreadsheets, add and manage sheets (tabs), read and update cell values, clear data ranges, copy formatting between sheets, and create pivot tables. This integration is perfect for data automation, report generation, and spreadsheet management workflows. For listing all spreadsheets, you’ll need to use the Google Drive integration.
Required:
action
- The operation to perform on spreadsheetsRetrieve information about a spreadsheet including sheets and properties
Parameters:
spreadsheet-id
(required) - The ID of the spreadsheetExample:
Response:
Get data from a specific range in a sheet
Parameters:
spreadsheet-id
(required) - The ID of the spreadsheetsheet-name
(required) - Name of the sheet/tabrange
(required) - Cell range to read (e.g., “A1:Z100” or “1:1” for first row)Example:
Response:
Update values in a specific range
Parameters:
spreadsheet-id
(required) - The ID of the spreadsheetsheet-name
(required) - Name of the sheet/tabrange
(required) - Cell range to updatevalues
(required) - Data to write (as a 2D array)Example:
Response:
Clear values from a specific range
Parameters:
spreadsheet-id
(required) - The ID of the spreadsheetsheet-name
(required) - Name of the sheet/tabrange
(required) - Cell range to clearExample:
Response:
Add a new sheet (tab) to an existing spreadsheet
Parameters:
spreadsheet-id
(required) - The ID of the spreadsheetsheet-name
(required) - Name for the new sheetExample:
Response:
Create a new Google Sheets spreadsheet
Parameters:
title
(required) - Title for the new spreadsheetExample:
Response:
Copy formatting from one range to another
Parameters:
spreadsheet-id
(required) - The ID of the spreadsheetsource-sheet-id
(required) - Sheet ID of the sourcedestination-sheet-id
(required) - Sheet ID of the destinationsource-range
(optional) - Source range boundariesdestination-range
(optional) - Destination range boundariesExample:
Response:
Create a pivot table from data
Parameters:
spreadsheet-id
(required) - The ID of the spreadsheetsheet-id
(required) - Sheet ID where pivot table will be createdsource-data
(required) - Source data rangesort-order
(optional) - Sort order (ASCENDING or DESCENDING)Example:
Response:
To list all spreadsheets, use the Google Drive integration. Always fetch spreadsheet data first before performing operations. Never assume sheet IDs - retrieve them dynamically. When referring to “sheet,” it can mean either a specific tab within a spreadsheet or the entire spreadsheet. Range notation follows A1 notation (e.g., “A1:B10” or “Sheet1!A1:B10”).