# Gws Docs Write > Google Docs: Append text to a document. Source: https://skillsagentes.com/skills/googleworkspace/cli/gws-docs-write Repository: https://github.com/googleworkspace/cli Author: googleworkspace License: Apache-2.0 Updated: hace 4 meses Context cost: 10 tok installed, 284 tok once triggered, 284 tok with every bundled file Bundle: 1 file, 1 KB Permissions requested: none declared ## Install ```bash npx -y skills add googleworkspace/cli --skill gws-docs-write --agent claude-code ``` ## What it does - Añade texto plano al final del cuerpo de un documento de Google Docs usando `gws docs +write --document --text ` ## Use it when - Se necesita añadir texto al final de un documento de Google Docs existente vía CLI ## Don't bother when - Se requiere formato enriquecido (usar la API raw batchUpdate en su lugar) ## What triggers it - "Añade 'Hello, world!' al final del documento DOC_ID" - "Agrega este texto al final de mi Google Doc" ## Before you install - Requiere el binario `gws` y leer primero ../gws-shared/SKILL.md para autenticación, flags globales y reglas de seguridad; es un comando de escritura que debe confirmarse con el usuario antes de ejecutarse. ## Files - SKILL.md — 1 KB ## SKILL.md Reproduced verbatim from googleworkspace/cli under Apache-2.0. This section is the upstream document and is in English. # 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 --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 — confirm with the user before executing. ## See Also - [gws-shared](../gws-shared/SKILL.md) — Global flags and auth - [gws-docs](../gws-docs/SKILL.md) — All read and write google docs commands --- Skills Agentes — https://skillsagentes.com/skills/googleworkspace/cli/gws-docs-write