Skip to content

feat: add shared drive support to all Drive operations#42

Merged
aliwatters merged 5 commits intomainfrom
feat/shared-drive-support
Mar 16, 2026
Merged

feat: add shared drive support to all Drive operations#42
aliwatters merged 5 commits intomainfrom
feat/shared-drive-support

Conversation

@aliwatters
Copy link
Owner

Summary

Closes #41

  • Add SupportsAllDrives(true) to all 12 Drive API calls (files + permissions) so shared/team drive files are accessible
  • Add IncludeItemsFromAllDrives(true) to ListFiles so shared drive files appear in search and list results
  • Add optional corpora parameter to drive_search (default: allDrives) to let users scope searches to user, allDrives, or domain

Test plan

  • go build passes
  • go vet ./... passes
  • go test ./... passes
  • Manual: drive_search returns results from shared drives
  • Manual: drive_get / drive_download work with shared drive file IDs
  • Manual: drive_list can browse shared drive folders

🤖 Generated with Claude Code

- Handle discarded io.ReadAll error in auth.go getAuthenticatedEmail
- Update drive_search tool description to document fullText contains
  query for content search across PDFs, Docs, Sheets, and Office files
Add SupportsAllDrives and IncludeItemsFromAllDrives flags to all Drive
API calls so files in shared/team drives are accessible. Add optional
corpora parameter to drive_search (default: allDrives).
Verify default corpora (allDrives), explicit user/domain values for
search, and that drive_list passes corpora for shared drive browsing.
…sing

Without explicit corpora, listing files in a shared drive folder could
miss results. Consistent with drive_search which defaults to allDrives.
Drive (12 tools) was missing from the services list, tool overview,
and full tool reference table. Add shared drive support mention.
@aliwatters aliwatters merged commit 91ca2f4 into main Mar 16, 2026
1 check passed
@aliwatters aliwatters deleted the feat/shared-drive-support branch March 17, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add shared drive support to all Drive operations

1 participant