gemini-cli-extensions / gemini-cli-extensions/workspace

Feature request: drive.exportFile — export Docs/Sheets/Slides as PDF, DOCX, XLSX, PPTX, CSV

Open
#398 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
638
Forks
107
PR merge metrics
No merged PRs in 30d

Description

Problem

drive.downloadFile deliberately refuses Google Workspace files and redirects the model to docs.getText / sheets.getText / slides.getText:

This is a Google Doc. Direct download is not supported. Please use the 'docs.getText' tool...

That covers reading the content, but there is no way to produce the artifact users actually ask for: "save this doc as PDF", "export the spreadsheet as xlsx", "give me the deck as pptx". Today the model has to tell the user to do it manually in the UI.

Proposal

drive.exportFile(fileId, format, localPath) — a thin wrapper over files.export:

  • format: friendly enum (pdf, docx, xlsx, pptx, csv, txt, html, rtf, epub) mapped to the export MIME types, validated against the source file type by the API itself
  • localPath: same absolute-path convention as drive.downloadFile / slides.getSlideThumbnail
  • Read-only (readOnlyHint), fits the drive.read feature group; drive.readonly scope already covers files.export, so no consent change

Complements drive.downloadFile exactly where it punts today, and benefits Docs, Sheets and Slides at once.

I have a working implementation with Jest coverage ready to submit as a PR.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the existing drive.downloadFile behavior and the slides.getSlideThumbnail path convention, then review the Google Drive files.export API and its MIME mappings. The exportFile entry point should support the listed formats and absolute local paths, with Jest coverage confirming the expected exports and read-only behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.