Community程式設計與開發github.com

googlephotos-automation

通過 Rube MCP (Composio) 自動化 Google Photos 任務:上傳媒體、管理相簿、搜索照片、批量添加項目、創建和更新相簿。請始終先搜索工具以獲取當前架構。

googlephotos-automation 是什麼?

此技能通過 Rube MCP (Composio) 提供對 Google Photos API 的全面自動化能力。它允許開發者或 AI 代理輕鬆上傳圖片和視頻、創建和管理相簿、搜索媒體項目以及批量組織內容。支援的主要工具包括:上傳媒體、批量創建媒體項目、列出與搜索媒體項目、新增/更新相簿以及為相簿添加強化內容(如文字或位置)。此技能特別適合需要將 Google Photos 整合到自動化工作流程中的場景,例如自動備份、事件照片整理或社交媒體內容歸檔。它依賴於 Rube MCP 連線,必須先通過 RUBE_MANAGE_CONNECTIONS 建立活動連線,並始終呼叫 RUBE_SEARCH_TOOLS 以獲取最新的工具架構。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-claude-skills/tree/master/composio-skills/googlephotos-automation

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

透過 Rube MCP 自動化 Google Photos

上傳照片、管理相簿、搜索媒體項目,並使用 Rube MCP (Composio) 在 Google Photos 中批量整理內容。

工具包文檔:composio.dev/toolkits/googlephotos

先決條件

  • 必須已連接 Rube MCP(RUBE_SEARCH_TOOLS 可用)
  • 透過 RUBE_MANAGE_CONNECTIONS 使用工具包 googlephotos 建立活動連線
  • 始終先呼叫 RUBE_SEARCH_TOOLS 以獲取當前的工具架構

設定

取得 Rube MCP:在客戶端配置中新增 https://rube.app/mcp 作為 MCP 伺服器。不需要 API 金鑰 — 只需新增端點即可運作。

  1. 確認 RUBE_SEARCH_TOOLS 有回應,表示 Rube MCP 可用
  2. 使用工具包 googlephotos 呼叫 RUBE_MANAGE_CONNECTIONS
  3. 如果連線狀態不是 ACTIVE,請遵循回傳的驗證連結完成設定
  4. 在執行任何工作流程前,確認連線狀態顯示為 ACTIVE

核心工作流程

1. 列出相簿

使用 GOOGLEPHOTOS_LIST_ALBUMS 擷取使用者的「相簿」標籤中所有可見的相簿。

Tool: GOOGLEPHOTOS_LIST_ALBUMS
Parameters:
  - pageSize: 每頁相簿數量
  - pageToken: 分頁令牌
  - excludeNonAppCreatedData: 僅顯示由此應用程式建立的相簿

2. 建立新相簿

使用 GOOGLEPHOTOS_CREATE_ALBUM 在 Google Photos 中建立新相簿。

Tool: GOOGLEPHOTOS_CREATE_ALBUM
Parameters:
  - title (必填): 相簿標題

3. 上傳媒體

使用 GOOGLEPHOTOS_UPLOAD_MEDIA 將圖片或影片檔案上傳至 Google Photos。

Tool: GOOGLEPHOTOS_UPLOAD_MEDIA
Parameters:
  - file_to_upload: 要上傳的本機檔案路徑
  - url: 要上傳檔案的 URL(`file_to_upload` 的替代方案)
  - file_name: 上傳檔案的名稱
  - description: 媒體項目的說明/標題

4. 批量上傳並建立媒體項目

使用 GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS 在一次操作中上傳多個檔案並建立媒體項目。

Tool: GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS
Parameters:
  - files: 要上傳的本機檔案路徑
  - urls: 要上傳檔案的 URL
  - media_files: 混合輸入(檔案和 URL)
  - albumId: 要新增項目的相簿
  - albumPosition: 在相簿中的位置

5. 搜索媒體項目

使用 GOOGLEPHOTOS_SEARCH_MEDIA_ITEMS 搭配篩選條件搜索使用者的照片庫。

Tool: GOOGLEPHOTOS_SEARCH_MEDIA_ITEMS
Parameters:
  - albumId: 按相簿篩選
  - filters: 搜索篩選條件(日期範圍、內容類別、媒體類型)
  - orderBy: 排序方式
  - pageSize: 每頁結果數
  - pageToken: 分頁令牌

6. 將項目新增到相簿

使用 GOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMS 將現有媒體項目新增到相簿。

Tool: GOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMS
Parameters:
  - albumId (必填): 目標相簿 ID
  - mediaItemIds (必填): 要新增的媒體項目 ID 陣列

常見模式

  • 建立相簿後上傳:使用 GOOGLEPHOTOS_CREATE_ALBUM 建立相簿,然後搭配相簿 ID 使用 GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS,一次完成上傳和整理照片。
  • 列出後整理:使用 GOOGLEPHOTOS_SEARCH_MEDIA_ITEMS 或 GOOGLEPHOTOS_LIST_MEDIA_ITEMS 找到媒體項目 ID,然後使用 GOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMS 將它們新增到相簿。
  • 更新相簿元數據:使用 GOOGLEPHOTOS_UPDATE_ALBUM 更改相簿的標題或封面照片。
  • 取得相簿詳細資訊:使用 GOOGLEPHOTOS_GET_ALBUM 搭配相簿 ID 來擷取完整的相簿資訊。
  • 新增強化內容:使用 GOOGLEPHOTOS_ADD_ENRICHMENT 為相簿位置新增文字疊加、地點或地圖強化內容。
  • 從 URL 上傳:在 GOOGLEPHOTOS_UPLOAD_MEDIA 中使用 url 參數,或在 GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMS 中使用 urls 參數,直接從網頁 URL 上傳圖片。

已知陷阱

  • GOOGLEPHOTOS_LIST_MEDIA_ITEMS 已棄用 — 建議使用 GOOGLEPHOTOS_SEARCH_MEDIA_ITEMS 來列出和篩選媒體。
  • GOOGLEPHOTOS_UPLOAD_MEDIA 支援最大 200MB 的圖片和更大限制的影片。超出限制將會失敗。
  • 必須從 GOOGLEPHOTOS_LIST_ALBUMS 或 GOOGLEPHOTOS_CREATE_ALBUM 的回應中取得相簿 ID — 它們是封閉的字串。
  • GOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMS 只能將項目新增到由應用程式建立的相簿或用戶擁有的相簿。
  • GOOGLEPHOTOS_SEARCH_MEDIA_ITEMS 中的 filters 參數使用特定的 Google Photos API 篩選結構 — 請查閱架構以了解日期範圍和內容類別格式。
  • 透過 API 建立的媒體項目可能因為處理延遲而不會立即顯示在 Google Photos 網頁介面中。

快速參考

動作工具主要參數
列出相簿GOOGLEPHOTOS_LIST_ALBUMSpageSize, pageToken
建立相簿GOOGLEPHOTOS_CREATE_ALBUMtitle
取得相簿GOOGLEPHOTOS_GET_ALBUMalbumId
更新相簿GOOGLEPHOTOS_UPDATE_ALBUMalbumId, title, coverPhotoMediaItemId
上傳媒體GOOGLEPHOTOS_UPLOAD_MEDIAfile_to_upload 或 url, description
批量上傳GOOGLEPHOTOS_BATCH_CREATE_MEDIA_ITEMSfiles 或 urls, albumId
搜索媒體GOOGLEPHOTOS_SEARCH_MEDIA_ITEMSalbumId, filters, pageSize
列出媒體項目GOOGLEPHOTOS_LIST_MEDIA_ITEMSpageSize, pageToken
將項目新增到相簿GOOGLEPHOTOS_BATCH_ADD_MEDIA_ITEMSalbumId, mediaItemIds
新增強化內容GOOGLEPHOTOS_ADD_ENRICHMENTalbumId, newEnrichmentItem, albumPosition

由 Composio 提供技術支援

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

agent-mail-automation

Automate Agent Mail tasks via Rube MCP (Composio). Always search tools first for current schemas.

agentql-automation

Automate Agentql tasks via Rube MCP (Composio). Always search tools first for current schemas.

agenty-automation

Automate Agenty tasks via Rube MCP (Composio). Always search tools first for current schemas.

相關技能