Export the presentation
export_presentationExport a Google Slides presentation as PDF, PPTX, ODP, or TXT (including speaker notes) and save it to a local file path, overwriting existing files.
Instructions
Downloads the whole presentation as pdf, pptx, odp or txt (txt = all text incl. speaker notes) and saves it to output_path, overwriting an existing file. Served by the Drive export endpoint internally, which caps exports at 10 MB — a bigger deck fails with an export-size error (split it or use the Slides UI). Requires a Drive scope on the OAuth token (drive.readonly is enough; presentations-only gets a 403). Returns saved_to, bytes and mime_type; nothing in the presentation changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | The export format. | |
| output_path | Yes | Local file path to write, e.g. /tmp/deck.pdf — existing files are overwritten. | |
| presentation_id | Yes | The presentation id — the long id from the URL (docs.google.com/presentation/d/<presentationId>/edit) or from create_presentation output. |