Skip to content

Google Photos

Google Photos

Google Photos is a cloud-based photo storage and organization service offering automatic backups, AI-assisted search, and shared albums for personal and collaborative media management. With the integration in SquadOS, your agents can create albums, upload images and videos, search media items, and manage photo collections directly in the user’s Google Photos library.

This tool uses OAuth 2.0 (OAUTH2) to connect.

You will need to authorize access to your Google account. The flow is managed by Composio — no manual credentials are required.

FieldRequiredDescription
Google AccountYesGoogle account with Google Photos access, authorized via OAuth 2.0.
  1. Go to Tools in the side menu (/admin/tools).
  2. Open the Available tab and search for Google Photos.
  3. Click the card to open the details and hit Connect.
  4. You’re taken to the secure connection page hosted by Composio, where you authorize access to 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.)

GOOGLEPHOTOS_ADD_ENRICHMENT

Adds an enrichment at a specified position in a defined album.

NameTypeRequiredDescription
albumIdstringYesIdentifier of the album where the enrichment is to be added.
albumPositionobjectYesPosition in the album where the enrichment is to be inserted. Required field with valid position types: FIRST_IN_ALBUM, LAST_IN_ALBUM, AFTER_MEDIA_ITEM (requires relativeMediaItemId), AFTER_ENRICHMENT_ITEM (requires relativeEnrichmentItemId).
newEnrichmentItemobjectYesThe enrichment to be added; can be a text, location, or map enrichment.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMS

Adds one or more media items to an album in Google Photos.

NameTypeRequiredDescription
albumIdstringYesIdentifier of the album that the media items are added to. Must be an album created by this application.
mediaItemIdsarrayYesIdentifiers of the media items to be added. Maximum 50 items. Media items must be created by this application.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS

Batch upload and create media items in Google Photos. Supports three input methods: 1. urls: Simple list of public URLs (file names extracted automatically); 2. media_files: List of objects with url/file, file_name, and description; 3. files: List of FileUploadable objects for pre-uploaded files. Media items can optionally be added to an album at a specific position. Maximum 50 items per request.

NameTypeRequiredDescription
urlsarrayNoSimplified input: List of public URLs of media files to upload. File names will be extracted from URLs automatically. Use media_files for more control over file names and descriptions.
filesarrayNoList of files to upload to Google Photos.
albumIdstringNoOptional identifier of the album where the media items are to be added. If not specified, media items are added to the user’s library only.
media_filesarrayNoList of media files to upload. Each item can specify either a url (public URL) or a file (FileUploadable object). Maximum 50 items per request.
albumPositionobjectNoPosition in the album to add the media items.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_BATCH_GET_MEDIA_ITEMS

Returns the list of media items for the specified media item identifiers.

NameTypeRequiredDescription
mediaItemIdsarrayYesIdentifiers of the media items to be requested. Must not contain duplicates.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_CREATE_ALBUM

Creates a new album in Google Photos.

NameTypeRequiredDescription
titlestringYesName of the album to be created in Google Photos. Maximum 500 characters.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_GET_ALBUM

Returns the album based on the specified albumId.

NameTypeRequiredDescription
albumIdstringYesIdentifier of the album to be requested.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_GET_MEDIA_ITEM_DOWNLOAD

Downloads a media item from Google Photos and returns it as a file.

NameTypeRequiredDescription
mediaItemIdstringYesID of the media item to download.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_LIST_ALBUMS

Lists all albums shown to a user in the Albums tab of Google Photos.

NameTypeRequiredDescription
pageSizeintegerNoMaximum number of albums to return. Default 20, maximum 50.
pageTokenstringNoContinuation token for getting the next page of results.
excludeNonAppCreatedDatabooleanNoIf true, excludes media items not created by this app.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_LIST_MEDIA_ITEMS

Lists media items created by this application from Google Photos. DEPRECATION NOTICE: As of March 31, 2025, the Google Photos Library API ONLY returns media items that were uploaded/created by your application. This action CANNOT access the user’s full photo library. Use cases this action SUPPORTS: listing photos/videos your app previously uploaded to the user’s library; managing app-created content in Google Photos. Use cases this action DOES NOT SUPPORT: accessing photos taken by the user’s camera; viewing photos from other apps or web uploads; listing the user’s entire photo library. For accessing a user’s full library, use the Google Photos Picker API instead.

NameTypeRequiredDescription
pageSizeintegerNoMaximum number of items to return. Default 25, maximum 100.
pageTokenstringNoToken for getting the next page of results.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_LIST_SHARED_ALBUMS

[DEPRECATED — sunset March 31, 2025] Lists all shared albums available in the Sharing tab of the user’s Google Photos app.

NameTypeRequiredDescription
pageSizeintegerNoMaximum number of albums to return. Default 20, maximum 50.
pageTokenstringNoContinuation token for getting the next page of results. Use the value returned in nextPageToken from the previous response.
excludeNonAppCreatedDatabooleanNoIf true, excludes media items not created by this app. Defaults to false (all albums are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is used.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_SEARCH_MEDIA_ITEMS

Searches for media items in a user’s Google Photos library.

NameTypeRequiredDescription
albumIdstringNoAlbum to search within.
filtersobjectNoSearch filters.
orderBystringNoSort order for results, e.g. MediaMetadata.creation_time desc.
pageSizeintegerNoMaximum number of items to return. Default 25, maximum 100.
pageTokenstringNoToken for getting the next page.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_UPDATE_ALBUM

Updates an album’s title or cover photo in Google Photos.

NameTypeRequiredDescription
titlestringNoNew title for the album. Maximum 500 characters.
albumIdstringYesIdentifier of the album to update.
coverPhotoMediaItemIdstringNoID of the media item to use as album cover photo.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_UPDATE_MEDIA_ITEM

Updates a media item’s description in Google Photos.

NameTypeRequiredDescription
descriptionstringYesNew description for the media item. Must be shorter than 1000 characters.
mediaItemIdstringYesIdentifier of the media item to update.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

GOOGLEPHOTOS_UPLOAD_MEDIA

Upload a media file to Google Photos. Supports images (up to 200MB) and videos (up to 20GB).

NameTypeRequiredDescription
urlstringNoPublic URL of the media file to upload (must be directly accessible). The action will download the file from this URL and upload it to Google Photos. Alternative to file_to_upload. Supported formats: images (JPEG, PNG, GIF, HEIC, etc.) and videos (MP4, MOV, etc.).
file_namestringNoFile name for the uploaded media. Required when using the url parameter. Should include the file extension (e.g., photo.jpg, video.mp4).
descriptionstringNoOptional description for the media item.
file_to_uploadobjectNoThe media file to upload to Google Photos.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.