跳到正文
Skillpedia
写作32k · #9159

gws-docs-write

它能做什么

这个命令可以把你指定的文字添加到 Google 文档的末尾,就像在现有文字的最后粘贴一段内容。

适用场景

  • ✓当你想在现有文档中快速添加一条备注时。
  • ✓不打开 Google 文档也能继续写文字时。
  • ✓把不同来源的信息合并到同一份文档中时。

技能链接

https://github.com/googleworkspace/cli/blob/main/skills/gws-docs-write/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请在文档 ID 为 'XYZ123' 的文档末尾添加“提醒:买面包”。”

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

工作原理

你需要提供文档 ID 和要添加的文字。工具会找到对应的文档,并把你的文字插入到末尾。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

docs +write

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

Append text to a document

Usage

gws docs +write --document <ID> --text <TEXT>

Flags

Flag Required Default Description
--document ✓ — Document ID
--text ✓ — Text to append (plain text)

Examples

gws docs +write --document DOC_ID --text 'Hello, world!'

Tips

  • Text is inserted at the end of the document body.
  • For rich formatting, use the raw batchUpdate API instead.

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

See Also

  • gws-shared — Global flags and auth
  • gws-docs — All read and write google docs commands
常见问题

文字会被添加到哪里?

文字总是添加到文档正文内容的末尾。

我可以添加格式(加粗、斜体)吗?

不可以。这个命令只能添加纯文本。如果需要设置格式,你需要使用更高级的工具。

我如何找到文档 ID?

文档 ID 是 Google 文档链接中独特的那部分,通常位于 '/d/' 之后、'/edit' 之前。

详情

作者的原始描述

Google Docs: Append text to a document.

repo: googleworkspace/cli

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能