Skip to main content
Roberty Studio
AIGoogle

Google Sheets

Read and edit Google Sheets spreadsheets from the agent.

Google Sheets

Lets the agent read, write and manage the tabs and cell ranges of Google Sheets spreadsheets. It requires a Google Sheets connection configured in the workspace.

The available operations​

When you add this tool, choose which operations the agent is allowed to perform.


List the tabs​

Returns a spreadsheet's tabs (sheets) and their properties.

ParameterRequiredDefaultWhat it is
Spreadsheet IDYes—The Google Sheets spreadsheet's ID (it is in the URL: docs.google.com/spreadsheets/d/{ID}/)

Add a tab​

Creates a new tab in an existing spreadsheet.

ParameterRequiredDefaultWhat it is
Spreadsheet IDYes—The spreadsheet to create the tab in
TitleYes—The new tab's name
PositionNo—The tab's position (zero-based). Omitted, it goes at the end
Number of rowsNo1000The new tab's row count
Number of columnsNo26The new tab's column count

Delete a tab​

Removes a tab from a spreadsheet.

ParameterRequiredDefaultWhat it is
Spreadsheet IDYes—The spreadsheet holding the tab
Tab IDYes—The numeric ID of the tab to delete (from "List the tabs")

Read a range​

Reads the values of a range of cells.

ParameterRequiredDefaultWhat it is
Spreadsheet IDYes—The spreadsheet
RangeYes—The range in A1 notation (e.g. Sheet1!A1:D10, A1:C5, Sheet1!A:A). Include the tab's name to be precise

Update a range​

Replaces the values of a range of cells with the ones you give.

ParameterRequiredDefaultWhat it is
Spreadsheet IDYes—The spreadsheet
RangeYes—The range in A1 notation (e.g. Sheet1!A1:C3)
ValuesYes—A two-dimensional array of values (rows × columns). E.g. [["Name", "Age"], ["João", 30]]
Input modeNoUSER_ENTEREDHow the values are read: USER_ENTERED (formulas and types are interpreted) or RAW (literal text)

Clear a range​

Removes the values from a range of cells without touching the formatting.

ParameterRequiredDefaultWhat it is
Spreadsheet IDYes—The spreadsheet
RangeYes—The range to clear, in A1 notation (e.g. Sheet1!A1:D10, A:C)

Add rows​

Adds new rows at the end of a range or table.

ParameterRequiredDefaultWhat it is
Spreadsheet IDYes—The spreadsheet
Reference rangeYes—The range used to locate the table the rows go into (e.g. Sheet1!A1)
ValuesYes—The rows to add, as a two-dimensional array. E.g. [["João", 30, "SP"], ["Maria", 25, "RJ"]]
Input modeNoUSER_ENTEREDHow the values are read: USER_ENTERED or RAW
Insert modeNoINSERT_ROWSHow the data goes in: INSERT_ROWS (new rows are inserted) or OVERWRITE