Tools
Google Drive
Getting Started
Tools
- Airtable
- Apollo
- ArXiv
- Bing
- Brave Search
- Calculator
- Clearbit
- Dexa
- Diffbot
- DuckDuckGo
- E2B
- Exa
- Firecrawl
- HackerNews
- Gravatar
- Google Custom Search
- Google Docs
- Google Drive
- Hunter
- Jina
- LeadMagic
- Midjourney
- MCP Tools
- Notion
- Novu
- Open Meteo
- People Data Labs
- Perigon
- Polygon
- Predict Leads
- Proxycurl
- Reddit
- RocketReach
- Searxng
- SerpAPI
- Serper
- Slack
- Social Data Tools
- Tavily
- Twilio
- Twitter
- Typeform
- Weather
- Wikidata
- Wikipedia
- Wolfram Alpha
- YouTube
- ZoomInfo
Tools
Google Drive
Simplified Google Drive API.
- package:
@agentic/google-drive
- exports:
class GoogleDriveClient
,namespace googleDrive
- source
- google drive docs
Install
Copy
npm install @agentic/google-drive googleapis google-auth-library
Example Usage
Copy
import { GoogleDriveClient } from '@agentic/google-drive'
import { GoogleAuth } from 'google-auth-library'
import { google } from 'googleapis'
const auth = new GoogleAuth({ scopes: 'https://www.googleapis.com/auth/drive' })
const drive = google.drive({ version: 'v3', auth })
const client = new GoogleDriveClient({ drive })
const result = await client.listFiles()
const file = result.files[0]!
const metadata = await client.getFile({ fileId: file.id })
const content = await client.exportFile({
fileId: file.id,
mimeType: 'application/pdf'
})
On this page