gemini-cli-extensions / gemini-cli-extensions/workspace
Feature request: drive.exportFile — export Docs/Sheets/Slides as PDF, DOCX, XLSX, PPTX, CSV
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 itselflocalPath: same absolute-path convention asdrive.downloadFile/slides.getSlideThumbnail- Read-only (
readOnlyHint), fits thedrive.readfeature group;drive.readonlyscope already coversfiles.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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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