googledocs-automation
Helps your agent create and edit documents in Google Docs. Useful for automating the creation and updating of texts.
What it does
This tool helps you manage your Google Docs. You can create new documents, search for existing ones, update content, replace specific text, export to PDF, or make copies.
When to use it
- ✓Need to create a new document quickly.
- ✓Want to find an old document by name or content.
- ✓Need to replace text across multiple documents.
Example of what to ask your AI
“Create a document named 'Monthly Report' with the text 'This is the January sales report.'”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The tool connects to Google Docs and uses specific commands to perform the actions you request, such as creating, searching, or modifying your documents.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add ComposioHQ/awesome-claude-skills --skill googledocs-automationOr download just the file:
curl -L https://raw.githubusercontent.com/ComposioHQ/awesome-claude-skills/master/composio-skills/googledocs-automation/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Google Docs Automation via Rube MCP
Create, edit, search, export, and manage Google Docs documents programmatically using Rube MCP (Composio).
Toolkit docs: composio.dev/toolkits/googledocs
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active connection via
RUBE_MANAGE_CONNECTIONSwith toolkitgoogledocs - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLSresponds - Call
RUBE_MANAGE_CONNECTIONSwith toolkitgoogledocs - If connection is not ACTIVE, follow the returned auth link to complete setup
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Create a New Document
Use GOOGLEDOCS_CREATE_DOCUMENT to create a new Google Doc with a title and initial text content.
Tool: GOOGLEDOCS_CREATE_DOCUMENT
Parameters:
- title (required): Document filename/title
- text (required): Initial text content to insert into the document
2. Search for Documents
Use GOOGLEDOCS_SEARCH_DOCUMENTS to find Google Docs by name, content, date, or sharing status.
Tool: GOOGLEDOCS_SEARCH_DOCUMENTS
Parameters:
- query: Search query string
- max_results: Limit number of results
- modified_after / created_after: Filter by date
- shared_with_me: Filter shared documents
- starred_only: Filter starred documents
- include_shared_drives: Search shared drives
- order_by: Sort results
- page_token: Pagination token
3. Update Document Content with Markdown
Use GOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWN to replace the entire content of a document with Markdown-formatted text.
Tool: GOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWN
Parameters:
- id (required): Document ID
- markdown (required): Markdown content to replace entire document body
4. Find and Replace Text
Use GOOGLEDOCS_REPLACE_ALL_TEXT to replace all occurrences of a string in a document.
Tool: GOOGLEDOCS_REPLACE_ALL_TEXT
Parameters:
- document_id (required): Target document ID
- find_text (required): Text to search for
- replace_text (required): Replacement text
- match_case: Case-sensitive matching (boolean)
- search_by_regex: Use regex for find_text
- tab_ids: Specific tabs to search
5. Export Document as PDF
Use GOOGLEDOCS_EXPORT_DOCUMENT_AS_PDF to export a Google Doc to PDF format.
Tool: GOOGLEDOCS_EXPORT_DOCUMENT_AS_PDF
Parameters:
- file_id (required): Document file ID
- filename: Output PDF filename
6. Copy a Document
Use GOOGLEDOCS_COPY_DOCUMENT to duplicate an existing Google Doc.
Tool: GOOGLEDOCS_COPY_DOCUMENT
Parameters:
- document_id (required): Source document ID to copy
- title: Title for the new copy
- include_shared_drives: Search shared drives for the source
Common Patterns
- Search then edit: Use
GOOGLEDOCS_SEARCH_DOCUMENTSto find a document by name, then use the returned document ID withGOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWNorGOOGLEDOCS_REPLACE_ALL_TEXTto modify it. - Create from template: Use
GOOGLEDOCS_COPY_DOCUMENTto duplicate a template, thenGOOGLEDOCS_REPLACE_ALL_TEXTto fill in placeholder text. - Retrieve then update: Use
GOOGLEDOCS_GET_DOCUMENT_BY_IDto read current content, then apply edits withGOOGLEDOCS_UPDATE_EXISTING_DOCUMENT. - Batch text insertion: Use
GOOGLEDOCS_INSERT_TEXT_ACTIONto insert text at specific positions (by index) or append to the end of a document. - Share documents: Combine with
GOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCE(googledrive toolkit) to share documents after creation.
Known Pitfalls
GOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWNreplaces the entire document content -- it does not append. Use it for full rewrites only.GOOGLEDOCS_INSERT_TEXT_ACTIONrequires a preciseinsertion_index(character position). Setappend_to_end: trueto safely add text at the end.GOOGLEDOCS_UPDATE_EXISTING_DOCUMENTrequires constructing aneditDocsrequest body with raw Google Docs API batch update requests -- consult the API documentation for the correct structure.- Document IDs and file IDs are the same value for Google Docs, but parameter names differ across tools (
id,document_id,file_id).
…
FAQ
How do I connect this tool to my Google Docs?
You need to set up Rube MCP in your client and connect the 'googledocs' toolkit via RUBE_MANAGE_CONNECTIONS. Follow the authentication link if prompted.
Can I add text to an existing document without overwriting its content?
Yes, you can use the function to insert text at a specific position or append it to the end of the document.
Can the tool search for documents shared with me?
Yes, you can use the 'shared_with_me' parameter in the search function to find documents that have been shared with you.
Details
Original description by the author
Automate Google Docs tasks via Rube MCP (Composio): create, edit, search, export, copy, and update documents. Always search tools first for current schemas.
Popularity
- GitHub stars
- 77k
- Ranking position
- #1217
- License
- —
- Updated
- 9/18/2026
Comments
- …
More skills from this repository
artifacts-builder
Helps your agent build complex user interfaces. It uses modern technologies to create rich, interactive web pages.
ComposioHQ/awesome-claude-skills
brand-guidelines
Helps your agent apply official brand colors and fonts to materials. It's useful for maintaining visual identity in any piece that needs to look like the company's.
ComposioHQ/awesome-claude-skills
canvas-design
Lets your agent create original visual art in .png and .pdf. Use it when the user asks to create a poster, art, or other static design.
ComposioHQ/awesome-claude-skills
changelog-generator
Helps your agent create user-facing release notes from code commits. It transforms technical information into easy-to-understand text.
ComposioHQ/awesome-claude-skills
Similar skills
benchmark
Helps your agent measure code speed and performance. It's useful for ensuring things are fast and finding slowness issues.
affaan-m/ECC
content-hash-cache-pattern
Lets your agent use content hashes to cache file processing results. This avoids repeated processing and auto-invalidates the cache when content changes. Useful for speeding up slow tasks.
affaan-m/ECC
parallel-execution-optimizer
Makes your agent speed up complex tasks by breaking them into smaller parts and running them in parallel. It ensures everything is verified at the end.
affaan-m/ECC