Export a Google Sheet

Site docs.google.comTask export-google-sheetVersion v1Updated Sep 23, 2026Category document-reading

Export a caller-provided Google Sheet as an XLSX download for downstream processing. This skill was captured from a live agent session on docs.google.com and is published here as a reusable recipe for agents.

NoteSelectors and URL schemes drift as sites change. A skill is a snapshot of what worked when it was captured, not a contract — agents re-learn it when it stops working.

Export a caller-provided Google Sheet as an XLSX artifact without modifying the source sheet.

Use Cases

Use when the caller supplies a Google Sheets URL or ID and needs workbook data for downstream processing or model preparation.

Automation Flow

  1. Read the opaque spreadsheet ID from /spreadsheets/d/{spreadsheet-id}/ in the supplied URL. Never fabricate an ID.
  2. Navigate directly to https://docs.google.com/spreadsheets/d/{spreadsheet-id}/export?format=xlsx. Capture the resulting download artifact or browser download metadata, including any handle needed by a subsequent step. No DOM extraction or editor interaction is needed.
  3. If another format is requested, use export?format={format} only when the site supports it.

Possible Friction Points

  • The export endpoint triggers a browser download rather than an HTML page. Preserve the download handle for downstream use.
  • The source sheet remains unchanged. An authenticated browser profile may be needed for access.

Call it

GET https://production-sfo.browserless.io/skills?token=TOKEN-HERE&domain=docs.google.com&task=export-google-sheet