Search and read files from Google Drive, including Docs, Sheets, and uploaded files. The provider exposes one tool:Documentation Index
Fetch the complete documentation index at: https://docs.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
query_gdrive.
GoogleDriveContextProvider is read-only. There is no
update_gdrive tool.Authentication
OAuth or service account. For service accounts, share folders with the service account email.- OAuth (Personal)
- Service Account
gdrive_token.json.Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | "gdrive" | Tool becomes query_<id>. |
corpora | str | "allDrives" | Search scope: "user", "domain", "drive", or "allDrives". |
drive_id | str | None | Required when corpora="drive" (single Shared Drive). |
model | Model | None | Model for the sub-agent. |
mode | ContextMode | default | See Mode. |
Tools Exposed
| Tool | Description |
|---|---|
query_gdrive | Search files, list folders, read file contents (including Google Docs/Sheets). |
Shared Drive Support
By default,corpora="allDrives" searches everything the user can access. Narrow the scope:
Example queries
| Query | What happens |
|---|---|
| ”Find the product roadmap document” | Searches by title |
| ”What spreadsheets were modified this week?” | Searches with time filter |
| ”Read the meeting notes from the design review” | Gets file content |
Resources
GoogleDriveTools Example
All methods and OAuth setup
Cookbook Example
Working example