Skip to content
Skillpedia
Databases32k · #6259

gws-drive-upload

Allows your agent to upload files to Google Drive with automatic metadata. It's useful for organizing and finding your files.

What it does

This command sends a file from your computer to Google Drive. It also automatically adds information about the file, like its type and name.

When to use it

  • ✓When you want to save an important document to Google Drive.
  • ✓When you need to share a file with others.
  • ✓When you want to organize your files into specific folders on Drive.

Example of what to ask your AI

“Upload the file 'my_report.docx' to my Google Drive.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/googleworkspace/cli/blob/main/skills/gws-drive-upload/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/googleworkspace/cli/blob/main/skills/gws-drive-upload/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

You tell it which file to send and where to put it. The program handles sending and adding the details.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add googleworkspace/cli --skill gws-drive-upload

Or download just the file:

curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-drive-upload/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

drive +upload

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Upload a file with automatic metadata

Usage

gws drive +upload <file>

Flags

Flag Required Default Description
<file> ✓ — Path to file to upload
--parent — — Parent folder ID
--name — — Target filename (defaults to source filename)

Examples

gws drive +upload ./report.pdf
gws drive +upload ./report.pdf --parent FOLDER_ID
gws drive +upload ./data.csv --name 'Sales Data.csv'

Tips

  • MIME type is detected automatically.
  • Filename is inferred from the local path unless --name is given.

[!CAUTION] This is a write command — confirm with the user before executing.

See Also

  • gws-shared — Global flags and auth
  • gws-drive — All manage files, folders, and shared drives commands
FAQ

How does it know the file type?

It looks at the end of the file name (like .pdf or .docx) to guess the type.

Can I choose a different name for the file on Drive?

Yes, you can specify a new name using the '--name' option.

Can I put the file in a specific folder?

Yes, you can indicate the folder using the '--parent' option and its ID.

Details

Original description by the author

Google Drive: Upload a file with automatic metadata.

repo: googleworkspace/cli

Popularity

GitHub stars
32k
Ranking position
#6259
License
Apache-2.0
Updated
10/6/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills