com um clique
gws-sheets-write
Google Sheets: Write values to a specific range.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Google Sheets: Write values to a specific range.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
cURL (curl): Command-line web browser alternative. Fetch webpage HTML, test site connectivity, bypass basic bot detection, and read public web content directly from the terminal.
Python as a general-purpose problem-solving capability — use it to DO things (CV, parsing, APIs, data), not just to write programs. When stuck, reach for Python and install what you need into your dedicated Tool Environment. if you need a new package and you are unsure. ask the user for guidance and confirm before installing.
GitHub CLI (gh): Manage pull requests, issues, repositories, workflows, and releases from the terminal.
DOCX: Create a new Word document with headings, paragraphs, tables, and lists.
DOCX: Edit an existing Word document — append content, replace text, or add tables.
DOCX: Read text, tables, and metadata from a Word document.
Baseado na classificação ocupacional SOC
| name | gws-sheets-write |
| description | Google Sheets: Write values to a specific range. |
| metadata | {"version":"0.22.0","openclaw":{"category":"productivity","requires":{"bins":["gws"]},"cliHelp":"gws schema sheets.spreadsheets.values.update"},"maxent":{"requires":{"bins":[{"name":"gws","install":{"windows":{"method":"winget","id":"nekr0z.gws"},"linux":{"method":"script","url":"https://github.com/nicholasgasior/gws/releases/latest/download/install.sh"},"darwin":{"method":"brew","id":"gws"}}}]}}} |
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Write values (or formulas) to a specific cell or range. Unlike +append which always adds to the next empty row, +write targets an exact location and overwrites it.
gws sheets spreadsheets values update \
--params '{"spreadsheetId":"ID","range":"RANGE","valueInputOption":"USER_ENTERED"}' \
--json '{"values": ROWS}'
[!IMPORTANT] Always wrap
--paramsand--jsonin single quotes. Never use double quotes with backslash-escaping (\"). Single quotes require no escaping and work reliably across shells.
| Parameter | In --params | Required | Description |
|---|---|---|---|
spreadsheetId | ✓ | ✓ | Spreadsheet ID |
range | ✓ | ✓ | Target range in A1 notation (e.g. D1, A1:C3, Sheet2!B2:B10) |
valueInputOption | ✓ | — | USER_ENTERED (default — evaluates formulas) or RAW (stores text literally) |
--json)values is an array of rows. Each row is an array of cell values.
| Shape | JSON |
|---|---|
| Single cell | [[value]] |
| Single column (N rows) | [[v1],[v2],[v3]] |
| Single row (N columns) | [[v1,v2,v3]] |
| 2D block | [[r1c1,r1c2],[r2c1,r2c2]] |
# Write a single header cell
gws sheets spreadsheets values update \
--params '{"spreadsheetId":"ID","range":"D1","valueInputOption":"USER_ENTERED"}' \
--json '{"values":[["multipopul"]]}'
# Write a column of values (D2:D6)
gws sheets spreadsheets values update \
--params '{"spreadsheetId":"ID","range":"D2:D6","valueInputOption":"USER_ENTERED"}' \
--json '{"values":[[112200000],[6483000],[27007464],[64620000],[25007691]]}'
# Write a column of formulas (evaluates =B2*3 etc.)
gws sheets spreadsheets values update \
--params '{"spreadsheetId":"ID","range":"D2:D6","valueInputOption":"USER_ENTERED"}' \
--json '{"values":[["=B2*3"],["=B3*3"],["=B4*3"],["=B5*3"],["=B6*3"]]}'
# Write header + data in one call
gws sheets spreadsheets values update \
--params '{"spreadsheetId":"ID","range":"A1:C3","valueInputOption":"USER_ENTERED"}' \
--json '{"values":[["City","Population","Country"],["Tokyo",37400000,"Japan"],["Paris",2161000,"France"]]}'
# Write to a specific sheet tab (use SheetName!Range)
gws sheets spreadsheets values update \
--params '{"spreadsheetId":"ID","range":"Sheet2!A1","valueInputOption":"USER_ENTERED"}' \
--json '{"values":[["hello"]]}'
USER_ENTERED so that =B2*3 is evaluated, not stored as text.My Sheet!A1 — do not wrap in single quotes inside the JSON string (e.g. 'My Sheet'!A1 will fail with a parse error).--params and the shape of values should match. If they differ, the API writes as many cells as the values array contains within the range bounds.[!CAUTION] This is a write command — confirm with the user before executing.