Dados e análise Fonte oficial
Ler dados do Google Sheets com gws
Lê valores de uma planilha Google Sheets por ID e intervalo A1 sem modificar o conteúdo.
Ver código no GitHub Instala diretamente do repositório-fonte.
O que esta skill faz
A skill executa leituras no Google Sheets por meio do comando gws sheets +read. Ela exige o ID da planilha e um intervalo, como Sheet1!A1:D10, além da autenticação descrita nas regras compartilhadas do gws.
Quando usar
- Consultar uma tabela por intervalo A1
- Ler valores de uma aba específica
- Extrair linhas para análise local
- Inspecionar dados sem alterar a planilha
Como usar
- Leia as regras compartilhadas e configure a autenticação
- Confirme o ID da planilha
- Defina a aba e o intervalo necessários
- Execute gws sheets +read com spreadsheet e range
- Revise os valores retornados
O que revisar antes de instalar
- O comando não modifica dados
- ID e intervalo são obrigatórios
- Opções avançadas exigem a API values.get
SKILL.md
---
name: gws-sheets-read
description: "Google Sheets: Read values from a spreadsheet."
metadata:
version: 0.22.5
openclaw:
category: "productivity"
requires:
bins:
- gws
cliHelp: "gws sheets +read --help"
---
# 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