drive_sheets_read
Read cell values from a Google Sheets range, tab, or entire workbook. Choose formatted, raw, or formula output, and optionally write results to a YAML file.
Instructions
Read cell values from a spreadsheet: one A1 range/sheet, or — when both are omitted — every sheet in the workbook (capped at 200 sheets; narrow with sheet/range above that cap, rather than returning a partial workbook). render controls how values come back: formatted (default) matches the spreadsheet as displayed, unformatted gives raw typed numbers/booleans, formula gives formula text. Values are returned ragged exactly as the API returns them (trailing empty cells/rows truncated). When output_file is set, writes the YAML result to that path and returns a short summary instead — recommended for a large whole-workbook read. Read-only — no write gate or dry-run applies (unlike sheets write/append/clear, whose MCP handlers live in drive_write_tools). Mirrors omni-dev drive sheets read. Output is YAML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | An explicit A1 range, which may carry its own `Sheet!` prefix (e.g. `A1:C10`, `'My Sheet'!A:A`). Combined with `sheet` when bare. Omit both `range` and `sheet` to read every sheet in the workbook (capped at 200 sheets; narrow with `sheet`/`range` above that cap). | |
| sheet | No | Sheet (tab) title to read. Supplies the prefix for a bare `range`, or selects the whole tab on its own. Conflicts with a `range` that already names a sheet. | |
| render | No | How cell values are rendered. `formatted` (default) matches the spreadsheet as displayed; `unformatted` yields raw typed numbers rather than locale-formatted strings; `formula` yields formula text. | |
| account | No | Selects a named Drive account instead of the ambient `--account`/`OMNI_DEV_DRIVE_ACCOUNT` resolution — e.g. `work`. Omit to use the resolved default account (or the legacy single-account credentials, if no named accounts are configured). Call `drive_account_list` to discover configured names. | |
| output_file | No | When set, writes the result (YAML) to this path and returns a short summary instead of the inline body — recommended for a whole-workbook read that would exceed the response size limit. | |
| spreadsheet_id | Yes | Spreadsheet id (the `/d/<ID>/` segment of a Sheets URL). Required. |