Googledocs automation

From EricGrill/agents-skills-plugins · View interactive version

Googledocs automation is an AI agent skill from the GitHub repository EricGrill/agents-skills-plugins. Automate Google Docs tasks via Rube MCP (Composio): create, edit, search, export, copy, and update documents. Always search tools first for current schemas.

How to use this skill

Skill file

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

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.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit googledocs
  3. If connection is not ACTIVE, follow the returned auth link to complete setup
  4. 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

Known Pitfalls

Quick Reference

| Action | Tool | Key Parameters |

|--------|------|----------------|

| Create document | GOOGLEDOCS_CREATE_DOCUMENT | title, text |

| Search documents | GOOGLEDOCS_SEARCH_DOCUMENTS | query, max_results, modified_after |

| Get document by ID | GOOGLEDOCS_GET_DOCUMENT_BY_ID | id |

| Update with Markdown | GOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWN | id, markdown |

| Programmatic edits | GOOGLEDOCS_UPDATE_EXISTING_DOCUMENT | document_id, editDocs |

| Insert text | GOOGLEDOCS_INSERT_TEXT_ACTION | document_id, text_to_insert, insertion_index |

| Find and replace | GOOGLEDOCS_REPLACE_ALL_TEXT | document_id, find_text, replace_text |

| Export as PDF | GOOGLEDOCS_EXPORT_DOCUMENT_AS_PDF | file_id, filename |

| Copy document | GOOGLEDOCS_COPY_DOCUMENT | document_id, title |


Powered by Composio

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.