360 Secure SkillHub
360 安全技能中心

gws-docs

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

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

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add googleworkspace/cli/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.