What problem does it solve?
Provides a CLI-accessible interface to read, create, and modify Google Docs so teams and automation pipelines can manage document content without manual web UI editing. It centralizes document retrieval and batch updates behind a repeatable command-driven workflow and integrates with shared authentication and security rules.
Core Features & Use Cases
- Document Retrieval: Fetch the latest version of a specified Google Doc with documents.get for review or downstream processing.
- Document Creation: Create blank documents programmatically to seed templates or generate new files.
- Batch Updates: Apply one or more validated edits (inserts, formatting, structural changes) atomically using documents.batchUpdate for content generation and automated edits.
- Use Case: Automate product spec generation by creating a new doc, applying structured content blocks, and inserting generated text via batchUpdate from a CI job.
Quick Start
Use the gws CLI to fetch a document by its ID and apply a batchUpdate to insert or modify content.