Skip to main content

Export Google file

Save a Google Doc, Sheet or Slides file in an office format such as PDF, XLSX or DOCX.

Command in the Google Workspace toolkit · id ooa.google/drive_download_export · 7 inputs (3 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
File IDStringYesId of the Google Doc, Sheet or Slides file. A path under My Drive starting with / also works, e.g. /Reports/2026/summary.pdf.
FormatStringNopdfOutput format.
Local pathFileYesWhere to save it; the folder to save into when file_name is given.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.
OverwriteBooleanNotrueReplace an existing local file; when false a number such as (2) is added to the name.
File nameStringNoName for the saved file inside the local_path folder; the format's extension is added when the name has none.

Outputs​

OutputTypeWhat it is
pathFileSaved local path.