Index of every page on this site: llms.txt
All skills
googleworkspace avatar

/gws-drive-upload

@cd3697e
by Google Workspacegoogleworkspace/cli32k stars
1,997
Run it yourself

Google Drive: Upload a file with automatic metadata.

Use this Skill: https://skilld.dev/gh/googleworkspace/cli/gws-drive-upload

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈18 tokens for metadata: the name and description. ≈264 when used: this file.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈71 characters, or 0.9%.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill facilitates file uploads to Google Drive using the gws CLI tool. It appropriately warns the agent to obtain user confirmation before performing write operations.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer8mo

    1 file scanned · No issues

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at cd3697e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 8 months ago
Other metadata
metadata
{
  "version": "0.22.5",
  "openclaw": {
    "category": "productivity",
    "requires": {
      "bins": [
        "gws"
      ]
    },
    "cliHelp": "gws drive +upload --help"
  }
}
  • CLI
  • google-workspace
  • google-drive
  • file-upload
  • gws
  • automation

README badge

README badge for googleworkspace/cli/gws-drive-upload

Uploads a file to Google Drive with automatic MIME type detection and optional metadata (parent folder, custom filename). Integrates with the gws CLI and requires prior auth setup via gws-shared.

Generated from the current SKILL.md.

What authentication does this skill require?
Authentication is handled by the gws-shared skill, which must be read first. See ../gws-shared/SKILL.md for setup and security rules.
Can I upload to a specific folder in Google Drive?
Yes, use the --parent flag with a folder ID to specify the destination folder.
Do I need to specify the file MIME type?
No, MIME type is detected automatically based on the file extension.
Can I rename the file during upload?
Yes, use the --name flag to set a different filename than the source file.

Generated from the current SKILL.md. These answers refresh after source changes.