App Logo
docs.google.com

Sheets: read tab values

Read one tab of a Google Spreadsheet as a 2D array of display values. Returns values (row-major, '' for empty and non-top-left merged cells), nRows, nCols. Values are display strings after formatting (a date may read as "1.5").

Input

spreadsheetId required

Spreadsheet id or any full docs.google.com spreadsheet URL

gid optional

Tab gid (from sheets_list_tabs). Default 0 (first tab).

Default: 0

Output

nCols required
nRows required
values required

Row-major display values; '' for empty cells and non-top-left cells of merges

FAQ

Read one tab of a Google Spreadsheet as a 2D array of display values. Returns values (row-major, '' for empty and non-top-left merged cells), nRows, nCols. Values are display strings after formatting (a date may read as "1.5").
Required: spreadsheetId. Optional: gid.
It returns nCols, nRows, values.
Yes. It acts as you on docs.google.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the docs.google.com cookies saved by the Reduck extension.
Unknown: its author has not declared whether it changes anything on docs.google.com, so treat it as if it could.
Ask an AI agent connected to Reduck to run reduck/docs.google.com/sheets_read_tab, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/docs.google.com/sheets_read_tab
It is part of Reduck's official curated catalogue.

Start building not clicking