360 Secure SkillHub
360 安全技能中心

gws-docs-write

该 Skill 封装 gws docs +write 命令,通过命令行向指定 Google Docs 文档末尾追加纯文本内容。使用需提供文档 ID 与文本,执行前需确认写操作;认证与全局参数依赖 gws-shared。仅支持纯文本,富文本格式化需改用 batchUpdate API。

分类:自动化
googleworkspace
热度 62.19
最近更新 2026-10-18 17:15:10

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add googleworkspace/cli/gws-docs-write
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
gws-docs-write
description
Google Docs: Append text to a document.
metadata
{"version":"0.22.5","openclaw":{"category":"productivity","requires":{"bins":["gws"]},"cliHelp":"gws docs +write --help"}}

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