360 Secure SkillHub
360 安全技能中心

recipe-backup-sheet-as-csv

该 Skill 提供导出 Google Sheet 为 CSV 的操作步骤:先获取表格详情,再通过 gws drive files export 导出 CSV,或使用 gws sheets +read 直接读取指定范围并以 CSV 输出。使用前需加载 gws-sheets 和 gws-drive。

分类:效率
googleworkspace
热度 71.76
最近更新 2026-10-18 17:15:25

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add googleworkspace/cli/recipe-backup-sheet-as-csv
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
recipe-backup-sheet-as-csv
description
Export a Google Sheets spreadsheet as a CSV file for local backup or processing.
metadata
{"version":"0.22.5","openclaw":{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-sheets","gws-drive"]}}}

Export a Google Sheet as CSV

PREREQUISITE: Load the following skills to execute this recipe: gws-sheets, gws-drive

Export a Google Sheets spreadsheet as a CSV file for local backup or processing.

Steps

  1. Get spreadsheet details: gws sheets spreadsheets get --params '{"spreadsheetId": "SHEET_ID"}'
  2. Export as CSV: gws drive files export --params '{"fileId": "SHEET_ID", "mimeType": "text/csv"}'
  3. Or read values directly: gws sheets +read --spreadsheet SHEET_ID --range 'Sheet1' --format csv