Skip to content

Google Drive

Google Drive

Google Drive is a cloud storage solution for uploading, sharing, and collaborating on files across devices, with robust search and offline access. With the Google Drive integration in SquadOS, your agents can create documents and folders, upload files from URLs or text content, move and copy items, manage sharing permissions, and export Google Workspace documents to standard formats — all programmatically within automation flows.

This tool uses OAuth 2.0 (OAUTH2) to connect.

Authentication is managed by Composio via the standard Google OAuth flow. When connecting, you authorize access to your Google Drive account; no manual key or password is required.

  1. Go to Tools in the side menu (/admin/tools).
  2. Open the Available tab and search for Google Drive.
  3. Click the card to open the details modal and hit Connect.
  4. You’re taken to the secure connection page hosted by Composio, where you authorize access via OAuth with your Google account.
  5. Once done, you’re sent back to SquadOS with the account connected and the tool available for your agents. (Connection-flow details in Organization Tools.)

How do I set up custom Google OAuth credentials for Google Drive?

Section titled “How do I set up custom Google OAuth credentials for Google Drive?”

For a step-by-step guide on creating and configuring your own Google OAuth credentials with Composio, see How to create OAuth2 credentials for Google Apps.

Why am I seeing “App is blocked” when connecting Google Drive?

Section titled “Why am I seeing “App is blocked” when connecting Google Drive?”

The OAuth client is requesting scopes that Google hasn’t verified for that client. This usually happens when you add extra scopes beyond the defaults. Remove the additional scopes from your auth config, or create your own OAuth app and submit the scopes for verification.

Why am I getting “Google Drive API has not been used in project” error?

Section titled “Why am I getting “Google Drive API has not been used in project” error?”

When using custom OAuth credentials, the Google Drive API must be enabled in the Google Cloud project that owns those credentials. Enable it in Google Cloud Console under APIs & Services, wait a few minutes, and retry.

Why am I getting “Error 400: invalid_scope”?

Section titled “Why am I getting “Error 400: invalid_scope”?”

The requested scopes are invalid or incorrectly formatted in the authorization URL. Verify your scope values against the Google OAuth scopes docs.

Section titled “Why does the OAuth consent screen show “Composio” instead of my app?”

By default, the consent screen uses Composio’s OAuth app. To show your own app name and logo, create your own OAuth app and set a custom redirect URL.

Why am I getting 401 errors on tool calls?

Section titled “Why am I getting 401 errors on tool calls?”

The user’s access token is no longer valid. Common causes: the user revoked access, changed their password or 2FA, a Workspace admin policy changed, or Google’s refresh token limit (~50 per account) was exceeded. Re-authenticating the user typically resolves this.

GOOGLEDRIVE_CREATE_FILE

Creates a new file or folder in Google Drive. Supports both metadata-only creation (for folders and empty documents) and file upload with content. When file_to_upload is provided, uploads the actual file bytes; otherwise creates an empty file. Native Google file types (Docs, Sheets, Forms, etc.) and folders are created as empty shells when no content is provided; content must be added manually afterward. Newly created files are private by default — set sharing permissions afterward for collaboration.

NameTypeRequiredDescription
namestringNoThe name of the file. While optional, providing a meaningful name is strongly recommended. If not specified, Google Drive will create the file with name ‘Untitled’.
fieldsstringNoA comma-separated list of fields to include in the response.
parentsarrayNoGoogle Drive folder ID (not folder name) where the file will be created. Must be a list with exactly one folder ID. If omitted, the file is created in My Drive root.
starredbooleanNoWhether the user has starred the file.
mimeTypestringNoCommon MIME types for Google Drive file creation.
descriptionstringNoA short description of the file.
file_to_uploadobjectNoOptional file content to upload. FileUploadable object where name is the filename. If provided, the file will be created with the actual content from this upload.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_CREATE_FILE_FROM_TEXT

Creates a new file in Google Drive from provided text content (up to 10 MB), supporting various formats including automatic conversion to Google Workspace types. Created files are private by default; use a sharing tool afterward for collaborative access.

NameTypeRequiredDescription
file_namestringYesDesired name for the new file on Google Drive.
mime_typestringNoMIME type for the new file, determining how Google Drive interprets its content.
parent_idstringNoID of the parent folder in Google Drive. If omitted, the file is created in the root of My Drive. Do NOT pass folder names — only folder IDs work.
text_contentstringYesPlain text content to be written into the new file. Must be UTF-8 encoded.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_CREATE_FOLDER

Creates a new folder in Google Drive, optionally within an EXISTING parent folder specified by its ID or name. The parent folder MUST already exist — use GOOGLEDRIVE_FIND_FOLDER first to verify the parent exists or find its ID. Google Drive permits duplicate folder names, so always store and reuse the folder ID returned by this action.

NameTypeRequiredDescription
namestringYesName for the new folder.
parent_idstringNoID or exact name of an EXISTING parent folder. If omitted, the folder is created in the Drive root.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_UPLOAD_FILE

Uploads a file (max 5 MB) to Google Drive, placing it in the specified folder or root if no valid folder ID is provided. Always creates a new file (never updates existing); use GOOGLEDRIVE_EDIT_FILE to update with a stable file_id. Uploaded files are private by default.

NameTypeRequiredDescription
file_to_uploadobjectYesFile to upload to Google Drive (max 5 MB). Must be a dict with fields: name (filename), mimetype (accurate MIME type), and s3key (path from a previously staged Composio object).
folder_to_upload_tostringNoOptional ID of the target Google Drive folder. Invalid or missing IDs silently fall back to Drive root with no error.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_UPLOAD_FROM_URL

Tool to fetch a file from a provided URL server-side and upload it into Google Drive. Use when you need to reliably persist externally hosted files into Drive without client-side downloads.

NameTypeRequiredDescription
namestringYesName for the file in Google Drive, including extension (e.g., ‘report.pdf’, ‘image.png’).
mime_typestringNoTarget MIME type for the file in Google Drive. If not specified, Drive auto-detects from content.
source_urlstringYesURL of the file to download and upload to Google Drive. Must be a publicly accessible URL.
verify_sslbooleanNoWhether to verify SSL certificates when downloading from HTTPS URLs.
source_headersobjectNoOptional HTTP headers to include when downloading from source_url. Use for authentication tokens or CDN-specific headers.
parent_folder_idstringNoID of the parent folder in Google Drive. If not specified, the file will be uploaded to the root of My Drive.
supports_all_drivesbooleanNoWhether the request supports both My Drives and shared drives.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_UPLOAD_UPDATE_FILE

Tool to update file content in Google Drive by uploading new binary content. Use when you need to replace the contents of an existing file with new file data.

NameTypeRequiredDescription
fileIdstringYesThe ID of the file to update with new content.
addParentsstringNoComma-separated list of parent folder IDs to add.
uploadTypestringNoThe type of upload request: media for simple upload (content only), multipart for metadata + content, resumable for large files.
ocrLanguagestringNoLanguage hint for OCR processing (ISO 639-1 code, e.g., ‘en’).
removeParentsstringNoComma-separated list of parent folder IDs to remove.
file_to_uploadobjectYesThe file content to upload.
supportsAllDrivesbooleanNoWhether the app supports both My Drives and shared drives.
keepRevisionForeverbooleanNoWhether to set the ‘keepForever’ field in the new head revision.
useContentAsIndexableTextbooleanNoWhether to use the uploaded content as indexable text for search.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_DOWNLOAD_FILE

Downloads a file from Google Drive by its ID. For Google Workspace documents (Docs, Sheets, Slides), optionally exports to a specified mime_type. For other file types, downloads in their native format regardless of mime_type.

NameTypeRequiredDescription
fileIdstringYesThe unique identifier of the file to be downloaded from Google Drive. Must be a valid Google Drive file ID containing only alphanumeric characters, hyphens, and underscores.
mime_typestringNoONLY for Google Workspace documents (Docs, Sheets, Slides, Drawings). Specifies the export format. Has NO effect on regular files — they are always downloaded in their native format. If omitted for Google Workspace files, defaults to PDF.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_FIND_FILE

The comprehensive Google Drive search tool that handles all file and folder discovery needs. Use for any file finding task — from simple name searches to complex queries with date filters, MIME types, permissions, custom properties, folder scoping, and more. Searches across My Drive and shared drives with full metadata support.

NameTypeRequiredDescription
qstringNoQuery string to filter file results. Accepts both simple text searches and full Google Drive query syntax (e.g., name contains 'report', mimeType = 'application/pdf', modifiedTime > '2024-01-01T00:00:00').
fieldsstringNoSelector specifying which fields to include in a partial response. Use * for all fields.
spacesstringNoA comma-separated list of spaces to query. Supported values: drive, appDataFolder, photos.
corporastringNoSpecifies which collections of files to search: user, domain, drive, or allDrives (default).
driveIdstringNoID of the shared drive to search. Required if corpora is drive.
orderBystringNoComma-separated sort keys. Ascending by default; add desc for descending.
pageSizeintegerNoThe maximum number of files to return per page.
folder_idstringNoID of a specific folder to search within. Use root to search within the user’s root folder (My Drive).
pageTokenstringNoThe token for continuing a previous list request on the next page.
supportsAllDrivesbooleanNoWhether the requesting application supports both My Drives and shared drives.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_FIND_FOLDER

Tool to find a folder in Google Drive by its name and optionally a parent folder. Use when you need to locate a specific folder to perform further actions like creating files in it or listing its contents.

NameTypeRequiredDescription
starredbooleanNoSet to true to search for starred folders, or false for non-starred ones.
name_exactstringNoThe exact name of the folder to search for. This search is case-sensitive.
name_containsstringNoA substring to search for within folder names. This search is case-insensitive.
modified_afterstringNoSearch for folders modified after a specific date and time (RFC 3339 format).
parent_folder_idstringNoThe ID of the parent folder to search within. Only folders directly inside this parent will be returned.
name_not_containsstringNoA substring to exclude from folder names.
full_text_containsstringNoA string to search for within the folder’s name or description.
full_text_not_containsstringNoA string to exclude from the folder’s name or description.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_GET_FILE_METADATA

Tool to get a file’s metadata by ID. Use to verify mimeType, parents, and trashed status before destructive operations (delete/move/export), or to confirm mimeType='application/vnd.google-apps.document' before calling Google Docs tools.

NameTypeRequiredDescription
fieldsstringNoComma-separated list of fields to include in the response. Use * to return all available fields.
fileIdstringYesThe Google Drive file ID (an opaque alphanumeric string), NOT a file name. If you only have a file name, use GOOGLEDRIVE_FIND_FILE to get the file ID first.
includeLabelsstringNoA comma-separated list of IDs of labels to include in the labelInfo part of the response.
supportsAllDrivesbooleanNoWhether the requesting application supports both My Drives and shared drives.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_EDIT_FILE

Updates an existing Google Drive file with binary content by overwriting its entire content with new text (max 10 MB). IMPORTANT: This action only works with files that have binary content (text files, PDFs, images, etc.). It does NOT support editing Google Workspace native files (Google Docs, Sheets, Slides, etc.). Preserves the original file_id (unlike GOOGLEDRIVE_UPLOAD_FILE which creates a new ID).

NameTypeRequiredDescription
contentstringYesNew textual content to overwrite the existing file; will be UTF-8 encoded for upload. Overwrites the entire file body — partial edits are not possible.
file_idstringYesID of the Google Drive file to update. Only works with files that have binary content (e.g., .txt, .json, .pdf, .jpg). Does NOT support Google Workspace native files.
mime_typestringNoMIME type of the content being uploaded. Must match the actual format of the content. Cannot be a Google Workspace MIME type.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_MOVE_FILE

Tool to move a file from one folder to another in Google Drive. To truly move (not just copy the parent), always provide both add_parents (destination folder ID) and remove_parents (source folder ID); omitting remove_parents leaves the file in multiple folders. Useful for reorganizing files, including newly created Google Docs/Sheets that default to Drive root.

NameTypeRequiredDescription
file_idstringYesThe ID of the file to move.
add_parentsstringNoThe ID of the single destination folder. Folder names are not accepted.
ocr_languagestringNoA language hint for OCR processing during image import (ISO 639-1 code).
include_labelsstringNoA comma-separated list of IDs of labels to include in the labelInfo part of the response.
remove_parentsstringNoA comma-separated list of parent folder IDs to remove the file from. Use this to specify the source folder.
supports_all_drivesbooleanNoWhether the requesting application supports both My Drives and shared drives.
keep_revision_foreverbooleanNoWhether to set the ‘keepForever’ field in the new head revision.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_DELETE_FILE

Tool to permanently delete a file owned by the user without moving it to trash. Use when permanent deletion is required. If the file belongs to a shared drive, the user must be an organizer on the parent folder.

NameTypeRequiredDescription
fileIdstringYesThe ID of the file to delete. This permanently removes the file without moving it to trash.
supportsAllDrivesbooleanNoWhether the requesting application supports both My Drives and shared drives.
enforceSingleParentbooleanNoDeprecated parameter.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_COPY_FILE_ADVANCED

Creates a copy of a file and applies any requested updates with patch semantics. Use when you need to duplicate a file with advanced options like label inclusion, visibility settings, or custom metadata.

NameTypeRequiredDescription
fileIdstringYesThe ID of the file to copy.
namestringNoThe name of the copied file. If not provided, the copied file will have the same name as the original, prefixed with ‘Copy of ’.
fieldsstringNoSelector specifying which fields to include in a partial response.
parentsarrayNoThe IDs of the parent folders which will contain the file.
starredbooleanNoWhether the user has starred the file.
mimeTypestringNoThe MIME type of the file.
descriptionstringNoA short description of the copied file.
supportsAllDrivesbooleanNoWhether the requesting application supports both My Drives and shared drives.
keepRevisionForeverbooleanNoWhether to set the ‘keepForever’ field in the new head revision.
ignoreDefaultVisibilitybooleanNoWhether to ignore the domain’s default visibility settings for the created file.
copyRequiresWriterPermissionbooleanNoWhether the options to copy, print, or download this file should be disabled for readers and commenters.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_TRASH_FILE

Tool to move a file or folder to trash (soft delete). Use when you need to delete a file but want to allow recovery via GOOGLEDRIVE_UNTRASH_FILE. This action is distinct from permanent deletion and provides a safer cleanup workflow.

NameTypeRequiredDescription
fieldsstringNoComma-separated list of fields to include in the response.
file_idstringYesThe ID of the file to trash.
supportsAllDrivesbooleanNoWhether the requesting application supports both My Drives and shared drives.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_EMPTY_TRASH

Tool to permanently and irreversibly delete ALL trashed files in the user’s Google Drive or a specified shared drive. Recovery is impossible after execution. Affects every item in trash across the entire account or shared drive, not just files from the current workflow. Provide driveId to target a specific shared drive’s trash; omit to empty the user’s root trash.

NameTypeRequiredDescription
driveIdstringNoIf set, empties the trash of the provided shared drive. This parameter is ignored if the item is not in a shared drive.
enforceSingleParentbooleanNoDeprecated parameter.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_EXPORT_GOOGLE_WORKSPACE_FILE

Exports a Google Workspace document to the requested MIME type and returns exported file content. Use when you need to export Google Docs, Sheets, Slides, Drawings, or Apps Script files to a specific format. Note: The exported content is limited to 10 MB by Google Drive API.

NameTypeRequiredDescription
fileIdstringYesThe ID of the Google Workspace file to export. Must be a valid file ID for a Google Docs, Sheets, Slides, Drawings, or Apps Script file.
mimeTypestringYesThe MIME type of the format requested for this export. Supported formats depend on the source file type: Google Docs → DOCX, ODT, RTF, PDF, TXT, ZIP (HTML), EPUB, Markdown; Google Sheets → XLSX, ODS, PDF, CSV, TSV, ZIP (HTML); Google Slides → PPTX, ODP, PDF, TXT, JPG, PNG, SVG; Google Drawings → PDF, JPG, PNG, SVG; Apps Script → JSON.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_PARSE_FILE

DEPRECATED: Exports Google Workspace files (max 10 MB) to a specified format using mime_type, or downloads other file types; use GOOGLEDRIVE_DOWNLOAD_FILE instead.

NameTypeRequiredDescription
file_idstringYesThe unique ID of the file stored in Google Drive that you want to export or download.
mime_typestringNoTarget MIME type for exporting Google Workspace files only. For non-Workspace files, this parameter is ignored and the file is downloaded in its native format.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_CREATE_PERMISSION

Tool to create a permission for a file or shared drive. Use when you need to share a file or folder with users, groups, domains, or make it publicly accessible. Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.

NameTypeRequiredDescription
rolestringYesThe role granted by this permission. Valid values: owner, organizer, fileOrganizer, writer, commenter, reader.
typestringYesThe type of the grantee: user, group, domain, or anyone. When type is user or group, you must provide an email_address.
domainstringNoThe domain to which this permission refers. Required when type is domain.
file_idstringYesThe ID of the file or shared drive.
email_addressstringNoThe email address of the user or group to which this permission refers. Required when type is user or group.
email_messagestringNoA plain text custom message to include in the notification email.
expiration_timestringNoThe time at which this permission will expire (RFC 3339 date-time). Only for user and group permissions.
transfer_ownershipbooleanNoWhether to transfer ownership to the specified user and downgrade the current owner to a writer.
allow_file_discoverybooleanNoWhether the permission allows the file to be discovered through search. Only applicable for domain or anyone type permissions.
send_notification_emailbooleanNoWhether to send a notification email when sharing to users or groups.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_LIST_PERMISSIONS

Tool to list a file’s permissions. Use when you need to retrieve all permissions associated with a specific file or shared drive.

NameTypeRequiredDescription
fileIdstringYesThe ID of the file or shared drive.
pageSizeintegerNoThe maximum number of permissions to return per page.
pageTokenstringNoThe token for continuing a previous list request on the next page.
supportsAllDrivesbooleanNoWhether the requesting application supports both My Drives and shared drives.
useDomainAdminAccessbooleanNoIssue the request as a domain administrator.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_DELETE_PERMISSION

Deletes a permission from a file by permission ID. Deletion is irreversible — confirm the target user, group, or permission type before executing. IMPORTANT: You must first call GOOGLEDRIVE_LIST_PERMISSIONS to get valid permission IDs. To fully revoke public access, the type='anyone' (link-sharing) permission must be explicitly deleted.

NameTypeRequiredDescription
file_idstringYesThe ID of the file or shared drive.
permission_idstringYesThe unique ID of the permission to delete. IMPORTANT: You MUST first call GOOGLEDRIVE_LIST_PERMISSIONS with the file_id to retrieve valid permission IDs.
supportsAllDrivesbooleanNoWhether the requesting application supports both My Drives and shared drives.
useDomainAdminAccessbooleanNoIssue the request as a domain administrator.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_UPDATE_PERMISSION

Tool to update a permission with patch semantics. Use when you need to modify an existing permission for a file or shared drive. Inherited or domain-managed permissions may not be editable; verify editability with GOOGLEDRIVE_LIST_PERMISSIONS before updating.

NameTypeRequiredDescription
fileIdstringYesThe ID of the file or shared drive.
permissionobjectYesThe permission resource to update. Only role and expirationTime can be updated.
permissionIdstringYesThe ID of the permission. For anyone-type permissions, use 'anyone' as the permission ID.
removeExpirationbooleanNoWhether to remove the expiration date.
supportsAllDrivesbooleanNoWhether the requesting application supports both My Drives and shared drives.
transferOwnershipbooleanNoWhether to transfer ownership to the specified user.
useDomainAdminAccessbooleanNoIssue the request as a domain administrator.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_LIST_SHARED_DRIVES

Tool to list the user’s shared drives. Use when you need to get a list of all shared drives accessible to the authenticated user. Results may differ from the web UI due to admin policies; listing a drive does not guarantee access to its contents.

NameTypeRequiredDescription
qstringNoQuery string for searching shared drives using Google Drive query syntax (e.g., name contains 'ProjectX').
pageSizeintegerNoMaximum number of shared drives to return per page. Maximum allowed value is 1000.
pageTokenstringNoPage token for shared drives.
useDomainAdminAccessbooleanNoIssue the request as a domain administrator.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_CREATE_DRIVE

Tool to create a new shared drive. Use when you need to programmatically create a new shared drive for collaboration or storage.

NameTypeRequiredDescription
namestringYesThe name of this shared drive.
hiddenbooleanNoWhether the shared drive is hidden from default view.
themeIdstringNoThe ID of the theme from which the background image and color will be set.
colorRgbstringNoThe color of this shared drive as an RGB hex string.
requestIdstringNoOptional. An ID for idempotent creation of a shared drive.
backgroundImageFileobjectNoAn image file and cropping parameters for setting a background image for this shared drive.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_LIST_COMMENTS

Tool to list all comments for a file in Google Drive. Results are paginated; iterate using nextPageToken until absent to retrieve all comments. Filtering by author, content, or other criteria must be done client-side.

NameTypeRequiredDescription
fieldsstringNoA comma-separated list of fields to include in the response. Use * to include all fields.
fileIdstringYesThe ID of the file.
pageSizeintegerNoThe maximum number of comments to return per page.
pageTokenstringNoThe token for continuing a previous list request on the next page.
includeDeletedbooleanNoWhether to include deleted comments. Deleted comments will not include their original content.
startModifiedTimestringNoThe minimum value of modifiedTime for the result comments (RFC 3339 date-time).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEDRIVE_CREATE_COMMENT

Tool to create a comment on a file in Google Drive. Returns a nested data object; extract data.id for the resulting comment identifier. Omit anchor and quoted_file_content_* for general file-level comments.

NameTypeRequiredDescription
anchorstringNoA JSON string defining the region of the document to which the comment is anchored.
contentstringYesThe plain text content of the comment.
file_idstringYesThe ID of the file.
quoted_file_content_valuestringNoThe quoted content itself.
quoted_file_content_mime_typestringNoThe MIME type of the quoted content.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.