Get the FREE Ultimate OpenClaw Setup Guide →

googlephotos-automation

Scanned
npx machina-cli add skill ComposioHQ/awesome-claude-skills/googlephotos-automation --openclaw
Files (1)
SKILL.md
5.7 KB

Google Photos Automation via Rube MCP

Upload photos, manage albums, search media items, and batch-organize content in Google Photos using Rube MCP (Composio).

Toolkit docs: composio.dev/toolkits/googlephotos

Prerequisites

  • Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
  • Active connection via RUBE_MANAGE_CONNECTIONS with toolkit googlephotos
  • Always call RUBE_SEARCH_TOOLS first to get current tool schemas

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit googlephotos
  3. If connection is not ACTIVE, follow the returned auth link to complete setup
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. List Albums

Use GOOGLEPHOTOS_LIST_ALBUMS to retrieve all albums visible in the user's Albums tab.

Tool: GOOGLEPHOTOS_LIST_ALBUMS
Parameters:
  - pageSize: Number of albums per page
  - pageToken: Pagination token
  - excludeNonAppCreatedData: Only show albums created by this app

2. Create a New Album

Use GOOGLEPHOTOS_CREATE_ALBUM to create a new album in Google Photos.

Tool: GOOGLEPHOTOS_CREATE_ALBUM
Parameters:
  - title (required): Album title

3. Upload Media

Use GOOGLEPHOTOS_UPLOAD_MEDIA to upload an image or video file to Google Photos.

Tool: GOOGLEPHOTOS_UPLOAD_MEDIA
Parameters:
  - file_to_upload: Local file path to upload
  - url: URL of file to upload (alternative to file_to_upload)
  - file_name: Name for the uploaded file
  - description: Description/caption for the media item

4. Batch Upload and Create Media Items

Use GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS to upload multiple files and create media items in one operation.

Tool: GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS
Parameters:
  - files: Local file paths to upload
  - urls: URLs of files to upload
  - media_files: Mixed input (files and URLs)
  - albumId: Album to add items to
  - albumPosition: Position within the album

5. Search Media Items

Use GOOGLEPHOTOS_SEARCH_MEDIA_ITEMS to search the user's photo library with filters.

Tool: GOOGLEPHOTOS_SEARCH_MEDIA_ITEMS
Parameters:
  - albumId: Filter by album
  - filters: Search filters (date ranges, content categories, media types)
  - orderBy: Sort order
  - pageSize: Results per page
  - pageToken: Pagination token

6. Add Items to an Album

Use GOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMS to add existing media items to an album.

Tool: GOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMS
Parameters:
  - albumId (required): Target album ID
  - mediaItemIds (required): Array of media item IDs to add

Common Patterns

  • Create album then upload: Use GOOGLEPHOTOS_CREATE_ALBUM to create an album, then GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS with the album ID to upload and organize photos in one step.
  • List then organize: Use GOOGLEPHOTOS_SEARCH_MEDIA_ITEMS or GOOGLEPHOTOS_LIST_MEDIA_ITEMS to find media item IDs, then GOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMS to add them to albums.
  • Update album metadata: Use GOOGLEPHOTOS_UPDATE_ALBUM to change an album's title or cover photo.
  • Get album details: Use GOOGLEPHOTOS_GET_ALBUM with an album ID to retrieve full album information.
  • Add enrichments: Use GOOGLEPHOTOS_ADD_ENRICHMENT to add text overlays, locations, or map enrichments to album positions.
  • Upload from URLs: Use the url parameter in GOOGLEPHOTOS_UPLOAD_MEDIA or urls in GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS to upload images directly from web URLs.

Known Pitfalls

  • GOOGLEPHOTOS_LIST_MEDIA_ITEMS is deprecated -- prefer GOOGLEPHOTOS_SEARCH_MEDIA_ITEMS for listing and filtering media.
  • GOOGLEPHOTOS_UPLOAD_MEDIA supports images up to 200MB and videos up to a larger limit. Exceeding these will fail.
  • Album IDs must be obtained from GOOGLEPHOTOS_LIST_ALBUMS or GOOGLEPHOTOS_CREATE_ALBUM responses -- they are opaque strings.
  • GOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMS can only add items to albums created by the app or albums the user owns.
  • The filters parameter in GOOGLEPHOTOS_SEARCH_MEDIA_ITEMS uses a specific Google Photos API filter structure -- consult the schema for date range and content category formats.
  • Media items created via the API may not immediately appear in the Google Photos web UI due to processing delays.

Quick Reference

ActionToolKey Parameters
List albumsGOOGLEPHOTOS_LIST_ALBUMSpageSize, pageToken
Create albumGOOGLEPHOTOS_CREATE_ALBUMtitle
Get albumGOOGLEPHOTOS_GET_ALBUMalbumId
Update albumGOOGLEPHOTOS_UPDATE_ALBUMalbumId, title, coverPhotoMediaItemId
Upload mediaGOOGLEPHOTOS_UPLOAD_MEDIAfile_to_upload or url, description
Batch uploadGOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMSfiles or urls, albumId
Search mediaGOOGLEPHOTOS_SEARCH_MEDIA_ITEMSalbumId, filters, pageSize
List media itemsGOOGLEPHOTOS_LIST_MEDIA_ITEMSpageSize, pageToken
Add items to albumGOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMSalbumId, mediaItemIds
Add enrichmentGOOGLEPHOTOS_ADD_ENRICHMENTalbumId, newEnrichmentItem, albumPosition

Powered by Composio

Source

git clone https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/googlephotos-automation/SKILL.mdView on GitHub

Overview

Automate Google Photos tasks with Rube MCP (Composio): upload media, manage albums, search photos, and batch‑organize items. The workflow emphasizes querying current schemas with RUBE_SEARCH_TOOLS and ensuring an ACTIVE googlephotos connection before running any workflows.

How This Skill Works

Rube MCP orchestrates calls to Google Photos tools such as GOOGLEPHOTOS_CREATE_ALBUM, GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS, GOOGLEPHOTOS_UPLOAD_MEDIA, and GOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMS. Start by verifying RUBE_SEARCH_TOOLS to fetch current schemas, then establish a connection with RUBE_MANAGE_CONNECTIONS for the googlephotos toolkit, and finally execute the desired workflow steps (e.g., create album, upload media, and add items).

When to Use It

  • Starting a new project: create an album and batch upload items to it.
  • Organizing assets from multiple sources: search media items then batch add to an album.
  • Updating an album: rename title, change cover photo, or adjust metadata.
  • Rapidly locating photos by date or content: use GOOGLEPHOTOS_SEARCH_MEDIA_ITEMS with filters.
  • Uploading media from URLs: use the url parameter in GOOGLEPHOTOS_UPLOAD_MEDIA or urls in GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS.

Quick Start

  1. Step 1: Add https://rube.app/mcp as an MCP server in your client configuration.
  2. Step 2: Verify RUBE_SEARCH_TOOLS responds and connect to Google Photos via RUBE_MANAGE_CONNECTIONS; ensure the status is ACTIVE.
  3. Step 3: Run a starter workflow: create an album with GOOGLEPHOTOS_CREATE_ALBUM, then batch upload media with GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS using the new albumId.

Best Practices

  • Always call RUBE_SEARCH_TOOLS first to fetch current schemas.
  • Verify RUBE_MANAGE_CONNECTIONS with toolkit googlephotos and ensure ACTIVE before workflows.
  • Create albums before batch uploading media items to attach them correctly.
  • Use batch operations (GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS, GOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMS) for efficiency.
  • When listing or searching, use pagination and pageSize to manage results without overloading calls.

Example Use Cases

  • Create a new 'Vacation 2024' album and batch upload 50 photos and videos to it.
  • Search for photos from a specific date range and batch add them to a project album.
  • Upload a set of images from URLs and organize them into an album in one flow.
  • Update an album title and set a new cover photo to reflect the latest event.
  • Add captions or enrichments to album items using GOOGLEPHOTOS_ADD_ENRICHMENT.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers