Skip to main content
Glama

drive_files_download

Download files from Google Drive, extracting text content or exporting Google Docs/Sheets/Slides to readable formats like plain text or PDF.

Instructions

Download a file's content from Google Drive. Returns the text content for text files, or a base64-encoded string for binary files. For Google Docs/Sheets/Slides, exports to a readable format (plain text by default).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileIdYesThe file ID to download
exportMimeTypeNoFor Google-native files (Docs/Sheets/Slides): export format. Defaults to text/plain for Docs, text/csv for Sheets. Examples: text/plain, text/csv, application/pdf
savePathNoFor binary files (images, PDFs): save to this local path instead of returning content inline. The file path is returned in the response.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/conorbronsdon/gws-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server