Skip to Content

Google Sheets

Google Sheets icon
Arcade Optimized

Arcade.dev LLM tools for Google Sheets.

Author:Arcade
Version:5.1.0
Auth:User authorization via the Google auth provider
9tools
PyPI VersionPython VersionsWheel StatusDownloadsLicense

Arcade.dev provides LLM tools for Google Sheets, enabling seamless interactions with spreadsheet data through API integration. This toolkit allows developers to automate tasks, manage files, and enhance user experience in Google Sheets.

Capabilities

  • Create and manage spreadsheets with flexible data formats.
  • Retrieve and update cell contents efficiently.
  • Access user profile information and permissions.
  • Generate file picker URLs for user-driven file selection and authorization.

OAuth

  • Provider: Google
  • Scopes:
    • https://www.googleapis.com/auth/drive.file
    • https://www.googleapis.com/auth/userinfo.email
    • https://www.googleapis.com/auth/userinfo.profile

Secrets

  • No secret types or names are specified.

Available tools(9)

9 of 9
Tool nameDescriptionSecrets
Add a note to a specific cell in a spreadsheet. A note is a small piece of text attached to a cell (shown with a black triangle) that appears when you hover over the cell. sheet_id_or_name takes precedence over sheet_position. If a sheet is not mentioned, then always assume the default sheet_position is sufficient.
Create a new spreadsheet with the provided title and data in its first sheet Returns the newly created spreadsheet's id and title
Generate a Google File Picker URL for user-driven file selection and authorization. This tool generates a URL that directs the end-user to a Google File Picker interface where where they can select or upload Google Drive files. Users can grant permission to access their Drive files, providing a secure and authorized way to interact with their files. This is particularly useful when prior tools (e.g., those accessing or modifying Google Docs, Google Sheets, etc.) encountered failures due to file non-existence (Requested entity was not found) or permission errors. Once the user completes the file picker flow, the prior tool can be retried. Suggest this tool to users when they are surprised or confused that the file they are searching for or attempting to access cannot be found.
Gets the specified range of cells from a single sheet in the spreadsheet. sheet_id_or_name takes precedence over sheet_position. If a sheet is not mentioned, then always assume the default sheet_position is sufficient.
Gets the metadata for a spreadsheet including the metadata for the sheets in the spreadsheet. Use this tool to get the name, position, ID, and URL of all sheets in a spreadsheet as well as the number of rows and columns in each sheet. Does not return the content/data of the sheets in the spreadsheet - only the metadata. Excludes spreadsheets that are in the trash.
Searches for spreadsheets in the user's Google Drive based on the titles and content and returns the title, ID, and URL for each matching spreadsheet. Does not return the content/data of the sheets in the spreadsheets - only the metadata. Excludes spreadsheets that are in the trash.
Write values to a Google Sheet using a flexible data format. sheet_id_or_name takes precedence over sheet_position. If a sheet is not mentioned, then always assume the default sheet_position is sufficient.
Get comprehensive user profile and Google Sheets environment information. This tool provides detailed information about the authenticated user including their name, email, profile picture, Google Sheets access permissions, and other important profile details from Google services.
Write a value to a single cell in a spreadsheet.

Selected tools

No tools selected.

Click "Show all tools" to add tools.

Requirements

Select tools to see requirements

#

GoogleSheets.AddNoteToCell

Add a note to a specific cell in a spreadsheet. A note is a small piece of text attached to a cell (shown with a black triangle) that appears when you hover over the cell. sheet_id_or_name takes precedence over sheet_position. If a sheet is not mentioned, then always assume the default sheet_position is sufficient.

Parameters

ParameterTypeReq.Description
spreadsheet_idstringRequiredThe id of the spreadsheet to add a comment to
columnstringRequiredThe column string to add a note to. For example, 'A', 'F', or 'AZ'
rowintegerRequiredThe row number to add a note to
note_textstringRequiredThe text for the note to add
sheet_positionintegerOptionalThe position/tab of the sheet in the spreadsheet to write to. A value of 1 represents the first (leftmost/Sheet1) sheet. Defaults to 1.
sheet_id_or_namestringOptionalThe id or name of the sheet to write to. If provided, takes precedence over sheet_position.

Requirements

No secrets required

Output

Type:jsonThe status of the operation
#

GoogleSheets.CreateSpreadsheet

Create a new spreadsheet with the provided title and data in its first sheet Returns the newly created spreadsheet's id and title

Parameters

ParameterTypeReq.Description
titlestringOptionalThe title of the new spreadsheet
datastringOptionalThe data to write to the spreadsheet. A JSON string (property names enclosed in double quotes) representing a dictionary that maps row numbers to dictionaries that map column letters to cell values. For example, data[23]['C'] would be the value of the cell in row 23, column C. Type hint: dict[int, dict[str, Union[int, float, str, bool]]]

Requirements

No secrets required

Output

Type:jsonThe created spreadsheet's id and title
#

GoogleSheets.GenerateGoogleFilePickerUrl

Generate a Google File Picker URL for user-driven file selection and authorization. This tool generates a URL that directs the end-user to a Google File Picker interface where where they can select or upload Google Drive files. Users can grant permission to access their Drive files, providing a secure and authorized way to interact with their files. This is particularly useful when prior tools (e.g., those accessing or modifying Google Docs, Google Sheets, etc.) encountered failures due to file non-existence (Requested entity was not found) or permission errors. Once the user completes the file picker flow, the prior tool can be retried. Suggest this tool to users when they are surprised or confused that the file they are searching for or attempting to access cannot be found.

Parameters

No parameters required.

Requirements

No secrets required

Output

Type:jsonGoogle File Picker URL for user file selection and permission granting
#

GoogleSheets.GetSpreadsheet

Gets the specified range of cells from a single sheet in the spreadsheet. sheet_id_or_name takes precedence over sheet_position. If a sheet is not mentioned, then always assume the default sheet_position is sufficient.

Parameters

ParameterTypeReq.Description
spreadsheet_idstringRequiredThe id of the spreadsheet to get
sheet_positionintegerOptionalThe position/tab of the sheet in the spreadsheet to get. A value of 1 represents the first (leftmost/Sheet1) sheet . Defaults to 1.
sheet_id_or_namestringOptionalThe id or name of the sheet to get. Defaults to None, which means sheet_position will be used instead.
start_rowintegerOptionalStarting row number (1-indexed, defaults to 1)
start_colstringOptionalStarting column letter(s) or 1-based column number (defaults to 'A')
max_rowsintegerOptionalMaximum number of rows to fetch for each sheet in the spreadsheet. Must be between 1 and 1000. Defaults to 1000.
max_colsintegerOptionalMaximum number of columns to fetch for each sheet in the spreadsheet. Must be between 1 and 100. Defaults to 100.

Requirements

No secrets required

Output

Type:jsonThe spreadsheet properties and data for the specified sheet in the spreadsheet
#

GoogleSheets.GetSpreadsheetMetadata

Gets the metadata for a spreadsheet including the metadata for the sheets in the spreadsheet. Use this tool to get the name, position, ID, and URL of all sheets in a spreadsheet as well as the number of rows and columns in each sheet. Does not return the content/data of the sheets in the spreadsheet - only the metadata. Excludes spreadsheets that are in the trash.

Parameters

ParameterTypeReq.Description
spreadsheet_idstringRequiredThe id of the spreadsheet to get metadata for

Requirements

No secrets required

Output

Type:jsonThe spreadsheet metadata for the specified spreadsheet
#

GoogleSheets.SearchSpreadsheets

Searches for spreadsheets in the user's Google Drive based on the titles and content and returns the title, ID, and URL for each matching spreadsheet. Does not return the content/data of the sheets in the spreadsheets - only the metadata. Excludes spreadsheets that are in the trash.

Parameters

ParameterTypeReq.Description
spreadsheet_containsarray<string>OptionalKeywords or phrases that must be in the spreadsheet title. Provide a list of keywords or phrases if needed.
spreadsheet_not_containsarray<string>OptionalKeywords or phrases that must NOT be in the spreadsheet title. Provide a list of keywords or phrases if needed.
search_only_in_shared_drive_idstringOptionalThe ID of the shared drive to restrict the search to. If provided, the search will only return spreadsheets from this drive. Defaults to None, which searches across all drives.
include_shared_drivesbooleanOptionalWhether to include spreadsheets from shared drives. Defaults to False (searches only in the user's 'My Drive').
include_organization_domain_spreadsheetsbooleanOptionalWhether to include spreadsheets from the organization's domain. This is applicable to admin users who have permissions to view organization-wide spreadsheets in a Google Workspace account. Defaults to False.
order_byarray<string>OptionalSort order. Defaults to listing the most recently modified spreadsheets first. If spreadsheet_contains or spreadsheet_not_contains is provided, then the order_by will be ignored.
createdTimecreatedTime descfolderfolder descmodifiedByMeTimemodifiedByMeTime descmodifiedTimemodifiedTime descnamename descname_naturalname_natural descquotaBytesUsedquotaBytesUsed descrecencyrecency descsharedWithMeTimesharedWithMeTime descstarredstarred descviewedByMeTimeviewedByMeTime desc
limitintegerOptionalThe maximum number of spreadsheets to list. Defaults to 10. Max is 50
pagination_tokenstringOptionalThe pagination token to continue a previous request

Requirements

No secrets required

Output

Type:jsonA dictionary containing the title, ID, and URL for each matching spreadsheet. Also contains a pagination token if there are more spreadsheets to list.
#

GoogleSheets.UpdateCells

Write values to a Google Sheet using a flexible data format. sheet_id_or_name takes precedence over sheet_position. If a sheet is not mentioned, then always assume the default sheet_position is sufficient.

Parameters

ParameterTypeReq.Description
spreadsheet_idstringRequiredThe id of the spreadsheet to write to
datastringRequiredThe data to write. A JSON string (property names enclosed in double quotes) representing a dictionary that maps row numbers to dictionaries that map column letters to cell values. For example, data[23]['C'] is the value for cell C23. This is the same format accepted by create_spreadsheet. Type hint: dict[int, dict[str, int | float | str | bool]]
sheet_positionintegerOptionalThe position/tab of the sheet in the spreadsheet to write to. A value of 1 represents the first (leftmost/Sheet1) sheet. Defaults to 1.
sheet_id_or_namestringOptionalThe id or name of the sheet to write to. If provided, takes precedence over sheet_position.

Requirements

No secrets required

Output

Type:jsonThe status of the operation, including updated ranges and counts
#

GoogleSheets.WhoAmI

Get comprehensive user profile and Google Sheets environment information. This tool provides detailed information about the authenticated user including their name, email, profile picture, Google Sheets access permissions, and other important profile details from Google services.

Parameters

No parameters required.

Requirements

No secrets required

Output

Type:jsonGet comprehensive user profile and Google Sheets environment information.
#

GoogleSheets.WriteToCell

Write a value to a single cell in a spreadsheet.

Parameters

ParameterTypeReq.Description
spreadsheet_idstringRequiredThe id of the spreadsheet to write to
columnstringRequiredThe column string to write to. For example, 'A', 'F', or 'AZ'
rowintegerRequiredThe row number to write to
valuestringRequiredThe value to write to the cell
sheet_namestringOptionalThe name of the sheet to write to. Defaults to 'Sheet1'

Requirements

No secrets required

Output

Type:jsonThe status of the operation
Last updated on