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.
| Step 1: Install | Step 2: Pair Account | Step 3: Connect Google Photos |
|---|---|---|
| :---: | :---: | :---: |
| !Install | !Pair | 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 |
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ 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 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."
# 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"}'
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.
clawlink_begin_pairing if it is not configured yet.clawlink_list_integrations to verify the connection is active.clawlink_list_integrations
Response: Returns all connected integrations. Look for googlephotos in the list.
clawlink_list_tools --integration googlephotos
Response: Returns the live tool catalog for Google Photos.
If Google Photos tools are missing or the connection shows an error:
clawlink_list_integrations to verifyclawlink_list_tools --integration googlephotosAs 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 | 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 |
| 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 |
| 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 |
| 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 |
clawlink_call_tool --tool "googlephotos_list_albums" \
--params '{
"page_size": 50
}'
clawlink_call_tool --tool "googlephotos_list_media_items" \
--params '{
"page_size": 100
}'
clawlink_call_tool --tool "googlephotos_create_album" \
--params '{
"album_title": "Summer Vacation 2024"
}'
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"}
]
}'
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"]
}'
clawlink_call_tool --tool "googlephotos_update_media_item" \
--params '{
"media_item_id": "YOUR_MEDIA_ITEM_ID",
"description": "Updated description for this photo"
}'
clawlink_list_integrations to confirm Google Photos is connected.clawlink_list_tools --integration googlephotos to see the live catalog.clawlink_search_tools with a short query and integration googlephotos.┌─────────────────────────────────────────────────────────────┐
│ 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 │
└─────────────────────────────────────────────────────────────┘
clawlink_describe_tool first.whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.clawlink_preview_tool first.clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.| 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. |
```bash
openclaw plugins list
```
/new as a standalone message to reload the catalog.```bash
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
```
/new again and retry.googlephotos.clawlink_describe_tool to verify parameter names and types before calling.clawlink_preview_tool first.Powered by ClawLink — an integration hub for OpenClaw
共 2 个版本