Append values
Action ID:tools.google_sheets.append_values
Append rows to a Google Sheets range.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/append
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
string
required
A1 notation range to append to.
string
required
Target spreadsheet ID.
array[array[string | integer | number | boolean | null]]
required
Two-dimensional array of values to append.
boolean
Include the appended values in the response payload.Default:
false.string
How the input data should be inserted.Default:
"INSERT_ROWS".Allowed values: OVERWRITE, INSERT_ROWS.string | null
Orientation of the values array.Default:
null.string
How input data should be interpreted.Default:
"USER_ENTERED".Allowed values: RAW, USER_ENTERED.Batch clear values
Action ID:tools.google_sheets.batch_clear_values
Clear values from one or more ranges in a spreadsheet.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/batchClear
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
array[string]
required
List of A1 notation ranges to clear.
string
required
Spreadsheet ID to clear.
Batch clear values by data filter
Action ID:tools.google_sheets.batch_clear_values_by_data_filter
Clears one or more ranges of values from a spreadsheet. The caller must specify the spreadsheet ID and one or more DataFilters. Ranges matching any of the specified data filters will be cleared. Only values are cleared — all other properties of the cell (such as formatting, data validation, etc.) are kept.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/batchClearByDataFilter
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
array[object]
required
The DataFilters used to determine which ranges to clear. Each entry sets exactly one of
a1Range, gridRange or developerMetadataLookup. See https://developers.google.com/workspace/sheets/api/reference/rest/v4/DataFilterstring
required
The ID of the spreadsheet to update.
Batch get values
Action ID:tools.google_sheets.batch_get_values
Retrieve values from multiple ranges in a spreadsheet.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/batchGet
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
array[string]
required
A1 notation ranges to retrieve.
string
required
Spreadsheet ID to read from.
string | null
How dates and times should be represented.Default:
null.string | null
Orientation of the returned values.Default:
null.string | null
How values should be rendered in the response.Default:
null.Batch get values by data filter
Action ID:tools.google_sheets.batch_get_values_by_data_filter
Returns one or more ranges of values that match the specified data filters. The caller must specify the spreadsheet ID and one or more DataFilters. Ranges that match any of the data filters in the request will be returned.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/batchGetByDataFilter
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
array[object]
required
The data filters used to match the ranges of values to retrieve. Ranges that match any of the specified data filters are included in the response. Each entry sets exactly one of
a1Range, gridRange or developerMetadataLookup. See https://developers.google.com/workspace/sheets/api/reference/rest/v4/DataFilterstring
required
The ID of the spreadsheet to retrieve data from.
string | null
How dates, times, and durations should be represented in the output. One of
SERIAL_NUMBER or FORMATTED_STRING. This is ignored if value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER.Default: null.string | null
The major dimension that results should use. One of
ROWS or COLUMNS. For example, if the spreadsheet data is A1=1,B1=2,A2=3,B2=4, then a request that selects that range and sets majorDimension=ROWS returns [[1,2],[3,4]], whereas a request that sets majorDimension=COLUMNS returns [[1,3],[2,4]].Default: null.string | null
How values should be represented in the output. One of
FORMATTED_VALUE, UNFORMATTED_VALUE or FORMULA. The default render option is FORMATTED_VALUE.Default: null.Batch update spreadsheet
Action ID:tools.google_sheets.batch_update_spreadsheet
Applies one or more updates to the spreadsheet. Each request is validated before being applied. If any request is not valid then the entire request will fail and nothing will be applied.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/batchUpdate
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
array[object]
required
A list of updates to apply to the spreadsheet. Requests will be applied in the order they are specified. If any request is not valid, no requests will be applied. Each entry sets exactly one field of the
Request union, for example addSheet, deleteSheet, updateCells, mergeCells, copyPaste, addChart, or updateSpreadsheetProperties. See https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/requeststring
required
The spreadsheet to apply the updates to.
boolean | null
Determines if the update response should include the spreadsheet resource.Default:
null.boolean | null
True if grid data should be returned. Meaningful only if include_spreadsheet_in_response is
true. This parameter is ignored if a field mask was set in the request.Default: null.array[string] | null
Limits the ranges included in the response spreadsheet. Meaningful only if include_spreadsheet_in_response is
true.Default: null.Batch update values
Action ID:tools.google_sheets.batch_update_values
Update cell values across multiple ranges in one request.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/batchUpdate
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
string
required
Spreadsheet ID to update.
array[object]
required
List of updates with range, values, and optional major_dimension per entry.
boolean
Include the updated values in the response payload.Default:
false.string | null
How dates and times should be represented in the response.Default:
null.string | null
How updated values should be rendered in the response.Default:
null.string
How input data should be interpreted.Default:
"USER_ENTERED".Allowed values: RAW, USER_ENTERED.Batch update values by data filter
Action ID:tools.google_sheets.batch_update_values_by_data_filter
Sets values in one or more ranges of a spreadsheet. The caller must specify the spreadsheet ID, a valueInputOption, and one or more DataFilterValueRanges.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/batchUpdateByDataFilter
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
array[object]
required
The new values to apply to the spreadsheet. If more than one range is matched by the specified DataFilter the specified values are applied to all of those ranges. Each
DataFilterValueRange entry has dataFilter, values and an optional majorDimension. See https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/batchUpdateByDataFilter#DataFilterValueRangestring
required
The ID of the spreadsheet to update.
string
required
How the input data should be interpreted.
RAW stores the values as-is; USER_ENTERED parses the values as if the user typed them into the UI.boolean | null
Determines if the update response should include the values of the cells that were updated. By default, responses do not include the updated values. The
updatedData field within each of the BatchUpdateValuesResponse.responses contains the updated values.Default: null.string | null
Determines how dates, times, and durations in the response should be rendered. One of
SERIAL_NUMBER or FORMATTED_STRING. This is ignored if response_value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER.Default: null.string | null
Determines how values in the response should be rendered. One of
FORMATTED_VALUE, UNFORMATTED_VALUE or FORMULA. The default render option is FORMATTED_VALUE.Default: null.Clear values
Action ID:tools.google_sheets.clear_values
Clears values from a spreadsheet. The caller must specify the spreadsheet ID and range. Only values are cleared — all other properties of the cell (such as formatting, data validation, etc.) are kept.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/clear
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
string
required
The A1 notation or R1C1 notation of the values to clear.
string
required
The ID of the spreadsheet to update.
Copy sheet
Action ID:tools.google_sheets.copy_sheet
Copy a sheet to another spreadsheet.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.sheets/copyTo
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
string
required
Destination spreadsheet ID.
integer
required
ID of the sheet to copy.
string
required
Source spreadsheet ID.
Create spreadsheet
Action ID:tools.google_sheets.create_spreadsheet
Create a new Google Spreadsheet with an optional set of sheets.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/create
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
string
required
Spreadsheet title.
array[string] | null
Optional list of sheet titles to create.Default:
null.Get developer metadata
Action ID:tools.google_sheets.get_developer_metadata
Returns the developer metadata with the specified ID. The caller must specify the spreadsheet ID and the developer metadata’s unique metadataId.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.developerMetadata/get
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
integer
required
The ID of the developer metadata to retrieve.
string
required
The ID of the spreadsheet to retrieve metadata from.
Get spreadsheet
Action ID:tools.google_sheets.get_spreadsheet
Retrieve spreadsheet metadata and optional grid data.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/get
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
string
required
Spreadsheet ID to fetch.
boolean
Return grid data along with metadata.Default:
false.array[string] | null
Optional A1 notation ranges to include.Default:
null.Get spreadsheet by data filter
Action ID:tools.google_sheets.get_spreadsheet_by_data_filter
Returns the spreadsheet at the given ID. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/getByDataFilter
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
array[object]
required
The DataFilters used to select which ranges to retrieve from the spreadsheet. Each entry sets exactly one of
a1Range, gridRange or developerMetadataLookup. See https://developers.google.com/workspace/sheets/api/reference/rest/v4/DataFilterstring
required
The spreadsheet to request.
boolean | null
True if grid data should be returned. This parameter is ignored if a field mask was set in the request.Default:
null.Get values
Action ID:tools.google_sheets.get_values
Returns a range of values from a spreadsheet. The caller must specify the spreadsheet ID and a range.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/get
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
string
required
The A1 notation or R1C1 notation of the range to retrieve values from.
string
required
The ID of the spreadsheet to retrieve data from.
string | null
How dates, times, and durations should be represented in the output. One of
SERIAL_NUMBER or FORMATTED_STRING. This is ignored if value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER.Default: null.string | null
The major dimension that results should use. One of
ROWS or COLUMNS. For example, if the spreadsheet data in Sheet1 is A1=1,B1=2,A2=3,B2=4, then requesting range=Sheet1!A1:B2 with majorDimension=ROWS returns [[1,2],[3,4]], whereas majorDimension=COLUMNS returns [[1,3],[2,4]].Default: null.string | null
How values should be represented in the output. One of
FORMATTED_VALUE, UNFORMATTED_VALUE or FORMULA. The default render option is FORMATTED_VALUE.Default: null.Search developer metadata
Action ID:tools.google_sheets.search_developer_metadata
Returns all developer metadata matching the specified DataFilter. If the provided DataFilter represents a DeveloperMetadataLookup object, this will return all DeveloperMetadata entries selected by it. If the DataFilter represents a location in a spreadsheet, this will return all developer metadata associated with locations intersecting that region.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.developerMetadata/search
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
array[object]
required
The data filters describing the criteria used to determine which DeveloperMetadata entries to return. DeveloperMetadata matching any of the specified filters are included in the response. Each entry sets exactly one of
a1Range, gridRange or developerMetadataLookup. See https://developers.google.com/workspace/sheets/api/reference/rest/v4/DataFilterstring
required
The ID of the spreadsheet to retrieve metadata from.
Update values
Action ID:tools.google_sheets.update_values
Sets values in a range of a spreadsheet. The caller must specify the spreadsheet ID, range, and a valueInputOption.
Reference: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/update
Secrets
Optional secrets:google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_USER_TOKEN.google_sheets_oauth: OAuth tokenGOOGLE_SHEETS_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS; optional valuesGOOGLE_API_SUBJECT.
Input fields
string
required
The A1 notation of the values to update.
string
required
The ID of the spreadsheet to update.
string
required
How the input data should be interpreted.
RAW stores the values as-is; USER_ENTERED parses the values as if the user typed them into the UI.array[array[string | integer | number | boolean | null]]
required
The data to be written. This is an array of arrays, the outer array representing all the data and each inner array representing a major dimension. Each item in the inner array corresponds with one cell. Supported value types are bool, string, and double. Null values will be skipped. To set a cell to an empty value, set the string value to an empty string.
boolean | null
Determines if the update response should include the values of the cells that were updated. By default, responses do not include the updated values. If the range to write was larger than the range actually written, the response includes all values in the requested range (excluding trailing empty rows and columns).Default:
null.string | null
The major dimension of the values. One of
ROWS or COLUMNS. With range=A1:B2,majorDimension=ROWS then [[1,2],[3,4]] will set A1=1,B1=2,A2=3,B2=4. With range=A1:B2,majorDimension=COLUMNS then [[1,2],[3,4]] will set A1=1,B1=3,A2=2,B2=4. When writing, if this field is not set, it defaults to ROWS.Default: null.string | null
Determines how dates, times, and durations in the response should be rendered. One of
SERIAL_NUMBER or FORMATTED_STRING. This is ignored if response_value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER.Default: null.string | null
Determines how values in the response should be rendered. One of
FORMATTED_VALUE, UNFORMATTED_VALUE or FORMULA. The default render option is FORMATTED_VALUE.Default: null.