VM0VM0
Agent Skills

Google Drive

Manage files, folders, and sharing with Google Drive API

Google Drive is Google's cloud storage service. This skill enables your agent to upload and download files, manage folders, set sharing permissions, and export Google Workspace documents.

Required Environment

NameTypeDescription
GOOGLE_DRIVE_TOKENsecretGoogle Drive API bearer token

Connect your Google Drive account in Settings > Connectors on the vm0 platform. The token is automatically injected at runtime.

See Google Cloud Console for manual credential setup if needed.

Configuration

vm0.yaml
version: "1.0"

agents:
  my-agent:
    framework: claude-code
    skills:
      - https://github.com/vm0-ai/vm0-skills/tree/main/google-drive

Run

Store your secret on the platform (recommended, one-time setup):

vm0 secret set GOOGLE_DRIVE_TOKEN your-google-drive-token

Then run your agent - secrets are automatically loaded:

vm0 run my-agent "list files in my Drive"

For CI/CD or temporary overrides, pass secrets at runtime: --secrets GOOGLE_DRIVE_TOKEN=value. See Environment Variables for details.

Example Instructions

AGENTS.md
# File Organizer Agent

You use Google Drive to organize and manage files.

## Workflow

1. List files in the specified folder
2. Categorize by type and date
3. Create organized folder structure
4. Move files to appropriate folders

## Organization Rules

- Group by file type (documents, images, spreadsheets)
- Archive files older than 90 days
- Maintain a consistent naming convention
AGENTS.md
# Report Publisher Agent

You use Google Drive to export and share documents.

## Workflow

1. Find the requested document by name
2. Export to the desired format (PDF, DOCX)
3. Set sharing permissions for recipients
4. Provide the shareable link

## Export Formats

- Reports: export as PDF
- Templates: export as DOCX
- Data: export as XLSX