Export Drive file
google_drive_exportExport Google-native Docs, Sheets, Slides, or Drawings to formats such as PDF or DOCX; optionally write the exported bytes to a local file path.
Instructions
Export a Google-native file (Docs/Sheets/Slides/Drawings) to another format (e.g. application/pdf, text/plain, application/vnd.openxmlformats-officedocument.wordprocessingml.document). Pass saveToPath to write the exported bytes to a local file instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | Drive file ID. | |
| account | No | Account nickname to use. | |
| mimeType | Yes | Target MIME type (e.g. application/pdf). | |
| saveToPath | No | Local path to write the exported bytes to (returns { savedTo }). Must be inside the save root: GOOGLE_MCP_SAVE_ROOT, default ~/Downloads. |