Setup
If you haven’t set up Google OAuth yet, complete the Google OAuth Setup first.Enable the Google Sheets API
In your Google Cloud project, navigate to APIs & Services → Library, search for Google Sheets API, and click Enable.
Authorize Access
Available Actions
create_spreadsheet: Create a new spreadsheet with an optional title and initial sheet namesget_spreadsheet: Retrieve spreadsheet metadata (title, sheet names, named ranges)read_values: Read cell values from a range using A1 notation (e.g.Sheet1!A1:D10)batch_read_values: Read multiple ranges in a single API callwrite_values: Write values to a range, replacing existing contentappend_values: Append rows after the last row that contains data in a rangeclear_values: Clear all values from a range (preserving formatting)add_sheet: Add a new sheet (tab) to an existing spreadsheetdelete_sheet: Delete a sheet by its IDrename_sheet: Rename an existing sheetformat_cells: Apply number formats, text styles, or background colors to a cell range
Example Usage
Once configured, you can ask your agent things like:- “Create a new spreadsheet called ‘Monthly Expenses’”
- “Read the values from cells A1 to E20 in my budget sheet”
- “Add a new row with today’s sales data to the ‘Sales’ tab”
- “Clear all data from the ‘Draft’ sheet”
- “Rename the first sheet to ‘Summary’”
- “Format column B as currency in my expenses spreadsheet”
Using A1 Notation
All range operations use standard A1 notation. You can include the sheet name to target a specific tab:| Notation | Meaning |
|---|---|
A1 | Single cell |
A1:C10 | Range across rows and columns |
Sheet1!A1:B5 | Range on a specific sheet |
Sheet1!A:A | Entire column A on Sheet1 |