All skills
googleworkspace avatar

/gws-drive-upload

@705fb0e
by Google Workspacegoogleworkspace/cli31k stars
1,856

Google Drive: Upload a file with automatic metadata.

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

This session only. Nothing lands on disk.

SKILL.md

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

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

No alerts16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    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.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    1 file scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

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

Last checked against GitHub 2 months ago.

Activeupdated 6 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.