---
id: ssh-gws-sheets-read
name: "gws-sheets-read"
url: https://skills.yangsir.net/skill/ssh-gws-sheets-read
author: googleworkspace
domain: ai-agent-external-interaction
tags: ["google-sheets-api", "data-extraction", "spreadsheet-automation", "google-workspace"]
install_count: 24900
rating: 4.60 (309 reviews)
github: https://github.com/googleworkspace/cli
---

# gws-sheets-read

> 用于从Google Sheets电子表格中读取指定单元格或范围的值，方便数据获取。

**Stats**: 24,900 installs · 4.6/5 (309 reviews)

## Before / After 对比

### Google Sheets：读取电子表格值

## Readme

# sheets +read

> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.

Read values from a spreadsheet

## Usage

```bash
gws sheets +read --spreadsheet <ID> --range <RANGE>
```

## Flags

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--spreadsheet` | ✓ | — | Spreadsheet ID |
| `--range` | ✓ | — | Range to read (e.g. 'Sheet1!A1:B2') |

## Examples

```bash
gws sheets +read --spreadsheet ID --range "Sheet1!A1:D10"
gws sheets +read --spreadsheet ID --range Sheet1
```

## Tips

- Read-only — never modifies the spreadsheet.
- For advanced options, use the raw values.get API.

## See Also

- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
- [gws-sheets](../gws-sheets/SKILL.md) — All read and write spreadsheets commands


---
*Source: https://skills.yangsir.net/skill/ssh-gws-sheets-read*
*Markdown mirror: https://skills.yangsir.net/api/skill/ssh-gws-sheets-read/markdown*