跳到正文
Skillpedia
PDF、Word 与幻灯片32k · #9185

gws-sheets-append

它能做什么

这个工具可以在 Google Sheets 表格中新增一行数据。你只需要提供表格的 ID 和想要添加的数据即可。

适用场景

  • ✓当你需要手动往列表里添加一条新记录时。
  • ✓当你想快速把信息记录到表格里时。
  • ✓当你需要用新的结果或数据更新电子表格时。

技能链接

https://github.com/googleworkspace/cli/blob/main/skills/gws-sheets-append/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/gws-sheets-append/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“把这一行 'Jane,25,New York' 添加到 ID 为 '123abcXYZ' 的电子表格中。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会根据你提供的 ID 找到对应的电子表格,然后把你指定的数据作为新的一行添加到表格末尾。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

sheets +append

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

Append a row to a spreadsheet

Usage

gws sheets +append --spreadsheet <ID>

Flags

Flag Required Default Description
--spreadsheet ✓ — Spreadsheet ID
--values — — Comma-separated values (simple strings)
--json-values — — JSON array of rows, e.g. '[["a","b"],["c","d"]]'
--range — A1 Target range in A1 notation (e.g. 'Sheet2!A1') to select a specific tab

Examples

gws sheets +append --spreadsheet ID --values 'Alice,100,true'
gws sheets +append --spreadsheet ID --json-values '[["a","b"],["c","d"]]'
gws sheets +append --spreadsheet ID --range "Sheet2!A1" --values 'Alice,100'

Tips

  • Use --values for simple single-row appends.
  • Use --json-values for bulk multi-row inserts.
  • Use --range to append to a specific sheet tab (default: A1, i.e. first sheet).

[!CAUTION] This is a write command — confirm with the user before executing.

See Also

常见问题

怎么找到我的表格 ID?

ID 是 Google Sheets 网址中一长串字母和数字的组合,通常位于 “/d/” 和 “/edit” 之间。

可以一次添加多行吗?

可以。你可以使用 JSON 格式一次添加多行,这在处理大量数据时很有用。

可以把数据添加到指定的工作表标签页吗?

可以。你可以使用 “--range” 选项指定标签页,以及开始添加数据的单元格。

详情

作者的原始描述

Google Sheets: Append a row to a spreadsheet.

repo: googleworkspace/cli

热度

GitHub 星标
32k
排名
#9185
许可证
Apache-2.0
更新时间
2026/10/6

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能