360 Secure SkillHub
360 安全技能中心

Gws Docs

这是 gws CLI 的 Google Docs 命令封装,提供 documents.get、documents.create、documents.batchUpdate 三个 API 方法入口,以及向文档追加文本的 +write 辅助命令。使用前需先读取同级的 gws-shared 技能以获取认证与全局参数,可用 gws schema 查询各方法的参数与默认值。

googleworkspace-bot
googleworkspace-bot
热度 84.61
最近更新 2026-05-11 17:28:41
分类:效率依赖:第三方 API / 代码执行应用场景:API 集成 / 笔记整理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gws-docs
Metadata
name
gws-docs
description
Read and write Google Docs.
metadata
{"version":"0.22.5","openclaw":{"category":"productivity","requires":{"bins":["gws"]},"cliHelp":"gws docs --help"}}

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.