当前位置: 首页 > Skill >

Google Photos

Google Photos

Google Photos

Google Photos Library API 集成,托管 OAuth,支持上传媒体、搜索照片、创建及管理相册、更新媒体项。仅在需要时使用此技能。

1.0.6 2026.11.26 752
获取Skill文件查看使用说明
作 者:沈禾 许可证: 更新时间:2026.11.26
本文目录展开

Google Photos

Access Google Photos via the Google Photos Library API with managed OAuth authentication. Upload media, search photos, create and manage albums, and update media items.

This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure Google Photos API access yourself.

Setup in 3 Steps

Step 1: Install Step 2: Pair Account Step 3: Connect Google Photos
App-specific connection GIF coming soon
Run the install command in OpenClaw Sign in and approve the device Open the dashboard and connect Google Photos

How It Works

┌─────────────────┐     ┌──────────────┐     ┌──────────────────┐
│   OpenClaw      │────▶│   ClawLink   │────▶│   Google Photos  │
│   (User Chat)   │     │   (OAuth)    │     │   (Photos API)   │
└─────────────────┘     └──────────────┘     └──────────────────┘
         │                       │                       │
         │  1. Install Plugin    │                       │
         │  2. Pair Device       │                       │
         │  3. Connect Photos    │                       │
         │                       │  4. Secure Token       │
         │                       │  5. Proxy Requests    │
         │                       │                       │
         ▼                       ▼                       ▼
   ┌──────────┐           ┌──────────┐           ┌──────────┐
   │  SKILL   │           │ Dashboard│           │  Google  │
   │  File    │           │ Auth     │           │  Photos  │
   └──────────┘           └──────────┘           └──────────┘

Install

Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.

openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart

Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for Google Photos again."

Quick Start

# List albums
clawlink_call_tool --tool "googlephotos_list_albums" --params '{}'

# List media items
clawlink_call_tool --tool "googlephotos_list_media_items" --params '{"page_size": 50}'

# Create an album
clawlink_call_tool --tool "googlephotos_create_album" --params '{"album_title": "Vacation Photos"}'

Authentication

All Google Photos tool calls are authenticated automatically by ClawLink using the user's connected Google account.

No API key is required in chat. ClawLink stores the OAuth token securely and injects it into every Google Photos API request on the user's behalf.

Getting Connected

  1. Install the ClawLink plugin (see Install above).
  2. Pair the plugin with clawlink_begin_pairing if it is not configured yet.
  3. Open https://claw-link.dev/dashboard?add=googlephotos and connect Google Photos.
  4. Call clawlink_list_integrations to verify the connection is active.

Connection Management

List Connections

clawlink_list_integrations

Response: Returns all connected integrations. Look for googlephotos in the list.

Verify Connection

clawlink_list_tools --integration googlephotos

Response: Returns the live tool catalog for Google Photos.

Reconnect

If Google Photos tools are missing or the connection shows an error:

  1. Direct the user to https://claw-link.dev/dashboard?add=googlephotos
  2. After they confirm, call clawlink_list_integrations to verify
  3. Then call clawlink_list_tools --integration googlephotos

Security & Permissions

  • Access is scoped to media items and albums within the connected Google Photos account.
  • All write operations require explicit user confirmation. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.
  • Uploads and album changes must always be confirmed by the user.

Important API Limitation

As of March 31, 2025, the Google Photos Library API only returns media items that were uploaded or created by this application. It cannot access photos taken by the user's camera or uploaded from other apps. For accessing the user's full photo library, use the Google Photos Picker API instead.

Tool Reference

Album Management

Tool Description Mode
googlephotos_list_albums List all albums shown in the user's Albums tab Read
googlephotos_get_album Get a specific album by its ID Read
googlephotos_create_album Create a new album with a title Write
googlephotos_update_album Update an album's title or cover photo Write

Media Item Operations

Tool Description Mode
googlephotos_list_media_items List media items created by this application Read
googlephotos_search_media_items Search media items in the user's library Read
googlephotos_batch_get_media_items Get specific media items by their IDs Read
googlephotos_get_media_item_download Download a media item as a file Read
googlephotos_update_media_item Update a media item's description Write

Upload Operations

Tool Description Mode
googlephotos_upload_media Upload an image (up to 200MB) or video (up to 20GB) Write
googlephotos_batch_create_media_items Batch upload and create media items (up to 50 per request) Write

Album Content Management

Tool Description Mode
googlephotos_batch_add_media_items Add existing media items to an album Write
googlephotos_add_enrichment Add an enrichment (text, location, etc.) at a position in an album Write

Code Examples

List all albums

clawlink_call_tool --tool "googlephotos_list_albums" 
  --params '{
    "page_size": 50
  }'

List media items

clawlink_call_tool --tool "googlephotos_list_media_items" 
  --params '{
    "page_size": 100
  }'

Create an album

clawlink_call_tool --tool "googlephotos_create_album" 
  --params '{
    "album_title": "Summer Vacation 2024"
  }'

Batch upload media items from URLs

clawlink_call_tool --tool "googlephotos_batch_create_media_items" 
  --params '{
    "album_id": "YOUR_ALBUM_ID",
    "media_files": [
      {"url": "https://example.com/photo1.jpg", "file_name": "beach_sunset.jpg", "description": "Beautiful sunset at the beach"},
      {"url": "https://example.com/photo2.jpg", "file_name": "mountain_view.jpg", "description": "View from the mountain top"}
    ]
  }'

Add media items to an album

clawlink_call_tool --tool "googlephotos_batch_add_media_items" 
  --params '{
    "album_id": "YOUR_ALBUM_ID",
    "media_item_ids": ["MEDIA_ITEM_ID_1", "MEDIA_ITEM_ID_2"]
  }'

Update a media item description

clawlink_call_tool --tool "googlephotos_update_media_item" 
  --params '{
    "media_item_id": "YOUR_MEDIA_ITEM_ID",
    "description": "Updated description for this photo"
  }'

Discovery Workflow

  1. Call clawlink_list_integrations to confirm Google Photos is connected.
  2. Call clawlink_list_tools --integration googlephotos to see the live catalog.
  3. Treat the returned list as the source of truth. Do not guess or assume what tools exist.
  4. If the user describes a capability but the exact tool is unclear, call clawlink_search_tools with a short query and integration googlephotos.
  5. If no Google Photos tools appear, direct the user to https://claw-link.dev/dashboard?add=googlephotos.

Execution Workflow

┌─────────────────────────────────────────────────────────────┐
│  READ OPERATIONS (Safe)                                     │
│  list → get → search → call                                 │
│                                                             │
│  Example: List albums → Get album → Show results            │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│  WRITE OPERATIONS (Require Confirmation)                    │
│  describe → preview → confirm → call                        │
│                                                             │
│  Example: Describe tool → Preview → User approves            │
│           → Execute upload or update                         │
└─────────────────────────────────────────────────────────────┘
  1. For unfamiliar tools, ambiguous requests, or any write action, call clawlink_describe_tool first.
  2. Use the returned guidance, schema, whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.
  3. Prefer list, search, and read operations before writes.
  4. For uploads, album changes, or media item updates, call clawlink_preview_tool first.
  5. Execute with clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.
  6. If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.

Notes

  • Media items created via the API are only visible to the app that created them, not in the user's main Google Photos UI.
  • To display photos in the user's main Photos UI, the user must upload them through the Google Photos app directly.
  • Batch upload supports up to 50 items per request via URLs or pre-uploaded files.
  • Videos up to 20GB are supported for upload.
  • Album enrichment adds contextual content (text, location pins) to albums.
  • Media item IDs should be captured from creation or list responses for subsequent operations.

Error Handling

Status / Error Meaning
Tool not found The tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration googlephotos.
Missing connection Google Photos is not connected. Direct the user to https://claw-link.dev/dashboard?add=googlephotos.
NOT_FOUND Album or media item does not exist. Check the ID.
INVALID_ARGUMENT Invalid parameter or missing required field. Review the tool schema with clawlink_describe_tool.
Write rejected User did not confirm a write action. Always confirm before executing writes.

Troubleshooting: Tools Not Visible

  1. Check that the ClawLink plugin is installed:
    openclaw plugins list
    
  2. If the plugin is installed but tools are missing, tell the user to send /new as a standalone message to reload the catalog.
  3. If a fresh chat does not help, run:
    openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
    openclaw gateway restart
    
  4. After restart, tell the user to send /new again and retry.

Troubleshooting: Invalid Tool Call

  1. Ensure the integration slug is exactly googlephotos.
  2. Use clawlink_describe_tool to verify parameter names and types before calling.
  3. For write operations, always call clawlink_preview_tool first.

Resources

  • Google Photos Library API Overview
  • Media Items Reference
  • Albums Reference
  • ClawLink: https://claw-link.dev/?utm_source=clawhub&utm_medium=referral&utm_content=google-photos-albums
  • ClawLink Docs: https://docs.claw-link.dev/openclaw
  • ClawLink Verification: https://claw-link.dev/verify

Powered by ClawLink — an integration hub for OpenClaw

ClawLink Logo

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,015
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,003
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,001
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,000
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,000
Docker私有仓库搭建、镜像上传排错及删除方法

本文介绍如何在CentOS环境下部署Docker私有仓库,解决因HTTPS协议导致的镜像推送失败问题,并说明如何通过第三方工具实现本地仓库中镜像的删除操作。

2026.06.12 1,000
Skill 文件
  • SKILL.md
    • Google Photos
      • Setup in 3 Steps
    • How It Works
    • Install
    • Quick Start
    • Authentication
      • Getting Connected
    • Connection Management
      • List Connections
      • Verify Connection
      • Reconnect
    • Security & Permissions
    • Important API Limitation
    • Tool Reference
      • Album Management
      • Media Item Operations
      • Upload Operations
      • Album Content Management
    • Code Examples
      • List all albums
      • List media items
      • Create an album
      • Batch upload media items from URLs
      • Add media items to an album
      • Update a media item description
    • Discovery Workflow
    • Execution Workflow
    • Notes
    • Error Handling
      • Troubleshooting: Tools Not Visible
      • Troubleshooting: Invalid Tool Call
    • Resources
  • 项目或源文件

相关 Skill

更多
Google Photos Manager for OpenClaw Google Photos Manager for OpenClaw 管理Google Photos图库,支持上传照片、创建相册及列出图库内容。适用于用户通过Google Photos备份、整理或分享图片。
oo-googlephotos oo-googlephotos Google Photos (google.com). Use this skill for ANY Google Photos request — reading, creating, updating, and deleting data. Whenever a task involves Google Photos, use this skill instead of calling the API directly.
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。