Skip to main content

Overview

OneCLI connects AI agents to Google Photos through Google’s OAuth flow. Agents can search for photos and videos, read media metadata, and manage albums. The gateway injects OAuth credentials into requests to the Google Photos Library API automatically. This is useful for agents that need to find images for content creation, organize photo libraries, or extract metadata from media files.

Setup

1

Go to Connections

Open the OneCLI dashboard and navigate to Connections > Google Photos.
2

Authorize

Click Connect Google Photos. You’ll be redirected to Google to authorize OneCLI. Review the permissions and click Allow.

What agents can do

  • Search for photos and videos by date, category, or content type
  • List all media items in the library with pagination
  • Read media item metadata (creation time, dimensions, camera info, location)
  • Download media item content via base URLs
  • Create new albums
  • Add media items to albums
  • List albums and shared albums
  • Read album details (title, cover photo, item count)
  • Upload new media items to the library

Controlling access

Access is per agent: grant the connection to each agent that needs it, choosing per tool what runs freely, what needs human approval, and what stays blocked — a read-only agent is a single grant. Organization rules add guardrails on top, like rate limits and blanket blocks. Everything is checked before credential injection, so a blocked request never reaches Google Photos.