gws-docs-write

仓库创建 2026年3月3日最近提交 4 天前SkillHot 收录 20 天前
▸ 精选理由

便于自动化写入与日志记录到文档中。

▸ 风险提示

需要 Google OAuth 授权,脚本可修改用户文档数据。

这个 Skill 做什么

向指定 Google 文档追加文本内容。

能把文本追加写入指定的 Google 文档,从命令行直接往文档里写内容。常用场景包括自动生成报告、脚本化日志收集或把程序输出写进共享文档。把人工编辑变成可编程的写入步骤,便于集成到工作流或 CI 流程。

▸ 展开 SKILL.md 英文原文

Google Docs: Append text to a document.

办公文档Google Docs文档编辑追加通用
3.0w
Stars
1.8k
Forks
40
仓库内 Skill
+562
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-docs-write/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-docs-write/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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

```bash
gws docs +write --document <ID> --text <TEXT>
```

## Flags

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--document` | ✓ | — | Document ID |
| `--text` | ✓ | — | Text to append (plain text) |

## Examples

```bash
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 — con
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有