What this thread does
Do first: With gws installed, run gws auth login for the interactive route.
Short answer
Use the read helper for a bounded range and the raw Sheets update method to replace cell values. The repository describes gws as not an officially supported Google product.
What to do
Read with the helper, then inspect the update method through the documented schema command:
gws sheets +read --spreadsheet ID --range "Sheet1!A1:D10"
gws schema sheets.spreadsheets.values.update
For writes, call spreadsheets.values.update: PUT https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/{range}. In gws, the documented generic command is gws <service> <resource> [sub-resource] <method> [flags]; pass the update parameters and body using the fields below.
| Field or flag | Meaning |
|---|---|
--spreadsheet, --range | Both required by the read helper; reading does not modify cells. |
--params, --json | URL/query parameters and request body respectively. The update method requires spreadsheetId, an A1-notation range, and valueInputOption. |
valueInputOption | RAW stores values without parsing; USER_ENTERED parses as the Sheets UI does. The default INPUT_VALUE_OPTION_UNSPECIFIED must not be used. |
--dry-run | Validates locally without calling the API. After reviewing and approving the write, remove this flag to execute it. |
| Request values | values is an array of arrays. majorDimension defaults to ROWS when writing; COLUMNS changes orientation. Inputs accept bool, string, and double; null is skipped and an empty string clears a cell. |
| Update response | includeValuesInResponse defaults to false; responseValueRenderOption defaults to FORMATTED_VALUE; responseDateTimeRenderOption defaults to SERIAL_NUMBER and is ignored with FORMATTED_VALUE. |
Limits and open questions
The repository's shared guidance calls for confirmation before writes. No Sheets MCP server was evaluated.
Not for: local Microsoft Excel workbooks.
Sources
- googleworkspace/cli: README
- gws: Shared CLI reference
- gws: Sheets read helper
- gws: Sheets command reference
- Google: spreadsheets.values.update
- Google: ValueRange
- Google: ValueInputOption
Checked
2026-11-17: Read the googleworkspace/cli README, shared CLI reference, Sheets and read-helper references, and Google Sheets update-method, ValueRange, and ValueInputOption pages; no command was run.
Started from a post by @googleworkspace, packaged by the editor. Original post