# Google Drive

> Google Drive integration for AI agents via ClawLink — browser login, no API key setup. Connect Google Drive through ClawLink's hosted setup to search Drive, inspect files, create folders, upload files, manage sharing, and handle file metadata without manual credential setup. Use this skill when the user wants to work with Google Drive (Google Apps) — connect Google Drive, read or update Google Drive data, or take actions in Google Drive from chat instead of saying you cannot access it.

- Skill: `clawlink-hq/google-drive` (Agent Skill)
- Install (CLI): `npx skillmds@latest add clawlink-hq/google-drive`
- Raw SKILL.md: https://api.skillmd.com/api/skills/clawlink-hq/google-drive/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: clawlink-hq (https://skillmd.com/u/clawlink-hq)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/clawlink-hq/google-drive

---


# Google Drive

Use **Google Drive** from your AI agent through [ClawLink](https://claw-link.dev) — browser login, no API key to paste, no config to edit. Connect Google Drive once and the agent can read and act on it. Works in any agent that can run shell commands (Claude Code, Cursor, Codex, Cline, and more).

## Setup

Run these once — the agent can run them for you:

```bash
npx @useclawlink/cli login              # opens browser → approve (mints + stores a key)
npx @useclawlink/cli connect google-drive   # opens browser → authorize Google Drive
```

No API key to create or paste — `login` stores the credential at `~/.clawlink/credentials.json`.

## Using Google Drive

```bash
npx @useclawlink/cli actions google-drive "<what you want to do>"   # find an action
npx @useclawlink/cli describe google-drive <action-id>             # see its inputs (before writes)
npx @useclawlink/cli run google-drive <action-id> --input '<json>' # execute
```

Reads first; confirm with the user before any write.

## Available actions

| Action | Description |
|--------|-------------|
| `googledrive_find_file` | Search for files in Google Drive by name, MIME type, or query |
| `googledrive_find_folder` | Find a folder in Google Drive by name |
| `googledrive_get_file_metadata` | Get a file's metadata by ID |
| `googledrive_get_about` | Get user, Drive, and storage quota info |
| `googledrive_list_shared_drives` | List the user's shared drives |
| `googledrive_get_drive` | Get a shared drive by ID |
| `googledrive_list_permissions` | List a file's sharing permissions |
| `googledrive_list_comments` | List comments on a Google Drive file |
| `googledrive_list_replies` | List replies to a comment |
| `googledrive_list_revisions` | List a file's revision history |
| `googledrive_create_folder` | Create a new folder in Google Drive |
| `googledrive_create_file` | Create a new file or folder with metadata |
| `googledrive_create_file_from_text` | Create a Drive file from text content |
| `googledrive_create_drive` | Create a new shared drive |
| `googledrive_create_shortcut_to_file` | Create a shortcut to an existing Drive item |
| `googledrive_upload_file` | Upload a file to Google Drive |
| `googledrive_upload_from_url` | Fetch a URL and upload it to Google Drive |
| `googledrive_download_file` | Download a file from Google Drive |
| `googledrive_copy_file_advanced` | Copy a file with advanced options |
| `googledrive_move_file` | Move a file to a different folder |
| `googledrive_trash_file` | Move a file to trash |
| `googledrive_untrash_file` | Restore a file from trash |
| `googledrive_google_drive_delete_folder_or_file_action` | Permanently delete a file or folder |
| `googledrive_export_google_workspace_file` | Export a Google Workspace doc to a specific format |
| `googledrive_create_permission` | Share a file or folder with users or make it public |
| `googledrive_delete_permission` | Remove a sharing permission from a file |
| `googledrive_create_comment` | Create a comment on a Drive file |
| `googledrive_create_reply` | Reply to a comment on a Drive file |
| `googledrive_edit_file` | Update a Drive file's content (non-Google Workspace) |
| `googledrive_update_file_put` | Update file metadata like name, description, or parents |
| `googledrive_search_shared_drives` | Search shared drives in Google Drive |

## Notes

- **No API key for Google Drive itself** — ClawLink holds the OAuth token; the agent only holds your ClawLink credential.
- Not connected yet, or access expired? Re-run `npx @useclawlink/cli connect google-drive`.
- The action list above is a snapshot; `npx @useclawlink/cli actions google-drive` is always current.

## Resources

- ClawLink: https://claw-link.dev
- Docs: https://docs.claw-link.dev
- CLI: https://www.npmjs.com/package/@useclawlink/cli

---

**Powered by [ClawLink](https://claw-link.dev)** — connect 90+ apps to any AI agent.

