Actions2
Get Content
AI-generatedSummary
Fetch Google Drive file content as exported text, converting Docs to Markdown, Sheets to CSV, and Slides to Plain Text.
Inputs
- inputType — Whether to provide a Google Drive file URL or file ID. Default: url.
- fileUrl (required) — The Google Drive file URL. Shown when inputType is url. Placeholder: https://drive.google.com/file/d/FILE_ID/view
- fileId (required) — The Google Drive file ID. Shown when inputType is id. Placeholder: 1a2b3c4d5e6f7g8h9i0j
- includeImages — Whether to extract and return images separately from the markdown content. Default: false. WARNING: Images can make the output significantly larger.
- useMobileBasicFallback — Whether to fallback to mobilebasic endpoint if standard export fails. Default: true. Useful for permission-restricted documents. Returns Markdown (no images).
Output shape
fileId (string), fileName (string), mimeType (string), exportFormat (string), modifiedTime (string), content (string), usedFallback (boolean), and optionally images (array of extracted image objects when includeImages=true and content is markdown).
Content is the exported text in the appropriate format. usedFallback is true only if mobilebasic fallback was used for Google Docs. Unsupported MIME types or invalid URLs throw errors.
Examples
Example 1: Get content of a Google Doc by URL with images included.
inputType=url, fileUrl=https://drive.google.com/file/d/1ABC123/view, includeImages=true