Tooluck logoTooluck
SKILL.md

gws-drive-upload

Agent skill fromgoogleworkspace/cli

Google Drive: Upload a file with automatic metadata.

How to install gws-drive-upload

install gws-drive-upload
# install the cli pack with the skills CLI
npx skills add googleworkspace/cli

# or add only this skill to Claude Code: copy the folder

skills/gws-drive-upload/

# into

~/.claude/skills/gws-drive-upload/ (all projects)

.claude/skills/gws-drive-upload/ (one project)

skills/gws-drive-upload/SKILL.md

Apache-2.0Full file
1# drive +upload
2
3> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.
4
5Upload a file with automatic metadata
6
7## Usage
8
9```bash
10gws drive +upload <file>
11```
12
13## Flags
14
15| Flag | Required | Default | Description |
16|------|----------|---------|-------------|
17| `<file>` | ✓ | — | Path to file to upload |
18| `--parent` | — | — | Parent folder ID |
19| `--name` | — | — | Target filename (defaults to source filename) |
20
21## Examples
22
23```bash
24gws drive +upload ./report.pdf
25gws drive +upload ./report.pdf --parent FOLDER_ID
26gws drive +upload ./data.csv --name 'Sales Data.csv'
27```
28
29## Tips
30
31- MIME type is detected automatically.
32- Filename is inferred from the local path unless --name is given.
33
34> [!CAUTION]
35> This is a **write** command — confirm with the user before executing.
36
37## See Also
38
39- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
40- [gws-drive](../gws-drive/SKILL.md) — All manage files, folders, and shared drives commands

Excerpt shown under the repository's Apache-2.0 license.

More skills in cli

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates