Export Google Doc
AI-generatedSummary
Export a Google Docs document into Markdown, PDF, or Plain Text format, optionally saving the resulting file directly to a Google Drive folder.
Inputs
- Document (required) — The Google Docs document to export, selected from a list, URL, or ID.
- Export Format — The format to export to (Markdown, PDF, or Plain Text). Defaults to Markdown.
- Output File Name — Custom filename for the exported file. Uses the document's original title if left blank.
- Output Options — Additional settings, such as selecting a Google Drive folder to save the exported file.
Output shape
a single item object
PDF exports without a target folder emit binary file data in the item's binary property. Markdown and Plain Text exports return text content in the JSON 'content' property unless saved to Drive. If saved to Google Drive, response metadata includes 'savedFileId' and 'savedFileUrl'.
Examples
Example 1: Export a Google Doc as a Markdown string
Document: select doc via ID/URL, Export Format: Markdown
Example 2: Export a Google Doc as a PDF binary file
Document: select doc via ID/URL, Export Format: PDF, Output File Name: 'project-summary'
Example 3: Export a Google Doc and save the resulting file to a Google Drive folder
Document: select doc via ID/URL, Export Format: PDF, Output Options > Save to Google Drive Folder: select target folder