360 Secure SkillHub
360 安全技能中心

Gws Docs Write

核心功能是通过gws命令行工具向指定ID的Google文档末尾追加纯文本。典型场景包括快速补充文档内容、批量添加简单文本片段。需输入带必填的--document(文档ID)和--text(待追加文本)参数的bash命令,执行前需完成Google服务认证,且需确认用户同意;仅支持纯文本,富格式需用raw batchUpdate API。

googleworkspace-bot
googleworkspace-bot
热度 77.50
最近更新 2026-05-11 17:28:41
分类:自动化依赖:第三方 API应用场景:工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add 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