Get range values
Read a range as a list of rows and, optionally, as a data table with the first row as column names.
Command in the Google Workspace toolkit · id ooa.google/sheets_get_range · 7 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | Yes | Google OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Spreadsheet ID | String | Yes | The spreadsheet: its id, its full link (https://docs.google.com/spreadsheets/d/...), or its exact name in Drive (a name made only of letters, digits, - and _ is read as an id; use the link for such names). | |
| Range | String | No | A1 range, optionally with the sheet name, e.g. Sheet1!A1:C10; the first sheet when no sheet is named. Leave empty to read all cells of a sheet. | |
| First row is the header | Boolean | No | true | Table only: the first row holds column names. |
| Formatted | Boolean | No | false | Return values as displayed instead of raw values. |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. | |
| Sheet | String | No | When no range is given: the sheet (tab) whose cells are all read; the first sheet when empty. |
Outputs
| Output | Type | What it is |
|---|---|---|
| values | List | List of rows, each a list of cell values. |
| table | Table | The same range as a data table. |