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

gws-docs

它能做什么

这个工具可以帮你读取和编辑 Google 文档。你可以新建文档、查看已有文档的内容,或向文档中添加文字。

适用场景

  • ✓快速新建一份文档。
  • ✓不打开文档也能查看其内容。
  • ✓向已有文档中补充信息。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“新建一个名为“我的待办清单”的文档,并在里面加上“买牛奶”。”

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

工作原理

你需要告诉工具要访问哪份文档,以及要对它执行什么操作(读取、写入或新建)。工具会连接 Google 文档来完成你的请求。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

docs (v1)

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

gws docs <resource> <method> [flags]

Helper Commands

Command Description
+write Append text to a document

API Resources

documents

  • batchUpdate — Applies one or more updates to the document. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests.
  • create — Creates a blank document using the title given in the request. Other fields in the request, including any provided content, are ignored. Returns the created document.
  • get — Gets the latest version of the specified document.

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws docs --help

# Inspect a method's required params, types, and defaults
gws schema docs.<resource>.<method>

Use gws schema output to build your --params and --json flags.

常见问题

工具怎么知道我要哪份文档?

你在发出请求时需要提供文档的名称或标识符。

我可以编辑整份文档吗?

目前这个工具主要用于添加文字。如果需要完整编辑,你可能需要使用其他方式。

我需要 Google 账户吗?

需要。要访问和修改你的 Google 文档,你必须登录自己的 Google 账户。

详情

作者的原始描述

Read and write Google Docs.

repo: googleworkspace/cli

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能