gws-docs-write

Appends plain text to the end of a Google Docs document via the gws CLI.

Updated Nov 9, 2023
One-click install
npx skills add https://github.com/oresttokovenko/dot-files --skill gws-docs-write-oresttokovenko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-docs-write
Source: https://github.com/oresttokovenko/dot-files/tree/main/chezmoi/dot_agents/skills/gws-docs-write
Command: npx skills add https://github.com/oresttokovenko/dot-files --skill gws-docs-write-oresttokovenko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually opening Google Docs to append content breaks automated workflows. This Skill lets you append text to any Google Docs document directly from the command line using the gws CLI, enabling scripted document updates. ## Core Features & Use Cases - Append Text to Documents: Add plain text to the end of a Google Docs document by specifying the document ID and text content. - CLI-Driven Automation: Integrate document updates into shell scripts and agent workflows without opening a browser. - Use Case: Automatically append a daily status summary or log entry to a shared team Google Doc as part of a scheduled reporting pipeline. ## Quick Start Ask the assistant to append the text 'Meeting notes for today' to your Google Docs document with a given document ID using the gws docs write command.

Frequently Asked Questions about gws-docs-write

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I append text to a Google Docs document from the command line?

Run gws docs +write with the --document flag set to the document ID and the --text flag containing the plain text to append. The text is inserted at the end of the document body.

Can I add formatted text to Google Docs with gws docs write?

No, the +write command only appends plain text. For rich formatting such as bold, headings, or lists, use the raw Google Docs batchUpdate API instead.

What do I need before using gws docs write?

You need the gws binary installed and authentication configured as described in the gws-shared skill. If the shared skill is missing, run gws generate-skills to create it.

Where is text inserted when appending to a Google Doc?

Text is always inserted at the end of the document body. The command does not support inserting text at arbitrary positions within the document.

Is gws docs write safe to run automatically?

It is a write operation that modifies the document, so the skill instructs confirming with the user before executing. Use it in automated flows only with appropriate confirmation steps.