Skip to content

Commit 6079990

Browse files
docs(drive): add shared drives tip to SKILL.md
Files in shared drives are not returned by default. Adds a 'Shared Drives' section with supportsAllDrives examples and a tip for agents to retry with the flag when a file cannot be found.
1 parent a3768d0 commit 6079990

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@googleworkspace/cli": patch
3+
---
4+
5+
docs(drive): add shared drives tip to SKILL.md
6+
7+
Files in shared drives are invisible to `files list` and `files get`
8+
by default. Adds a "Shared Drives" section explaining that agents
9+
should retry with `supportsAllDrives: true` and
10+
`includeItemsFromAllDrives: true` when a file search returns no
11+
results and the user indicates the file is in a shared drive.

skills/gws-drive/SKILL.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@ gws drive <resource> <method> [flags]
2525
|---------|-------------|
2626
| [`+upload`](../gws-drive-upload/SKILL.md) | Upload a file with automatic metadata |
2727

28+
## Shared Drives
29+
30+
Files stored in a shared drive are not returned by default. If a file search returns no results, add `supportsAllDrives=true` to your `--params`:
31+
32+
```bash
33+
# List files across all drives (including shared drives)
34+
gws drive files list --params '{"q":"name = '\''report.pdf'\''","supportsAllDrives":true,"includeItemsFromAllDrives":true}'
35+
36+
# Get a file that lives in a shared drive
37+
gws drive files get --params '{"fileId":"FILE_ID","supportsAllDrives":true}'
38+
```
39+
40+
> **Tip:** If you can't find a file and the user mentions it's in a shared drive, retry the request with `supportsAllDrives: true` and `includeItemsFromAllDrives: true`.
41+
2842
## API Resources
2943

3044
### about

0 commit comments

Comments
 (0)