{"data":{"slug":"github-composiohq-awesome-claude-skills-composio-skills-googledocs-automation-c1f76ec5c607","title":"Google Docs Automation via Rube MCP","summary":"Create, edit, search, export, and manage Google Docs documents programmatically using Rube MCP (Composio). This skill requires an active Rube MCP connection with the Google Docs toolkit and the use of specific tools like GOOGLEDOCS_CREATE_DOCUMENT and GOOGLEDOCS_SEARCH_DOCUMENTS.","url":"https:\/\/skillshunter.net\/skills\/github-composiohq-awesome-claude-skills-composio-skills-googledocs-automation-c1f76ec5c607","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-composiohq-awesome-claude-skills-composio-skills-googledocs-automation-c1f76ec5c607","markdown_url":"https:\/\/skillshunter.net\/skills\/github-composiohq-awesome-claude-skills-composio-skills-googledocs-automation-c1f76ec5c607.md","download_url":"https:\/\/skillshunter.net\/skills\/github-composiohq-awesome-claude-skills-composio-skills-googledocs-automation-c1f76ec5c607\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before running any workflows, ensure Rube MCP is connected by verifying `RUBE_SEARCH_TOOLS` is available and calling `RUBE_MANAGE_CONNECTIONS` with the `googledocs` toolkit. Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas.","instructions":"---\nname: googledocs-automation\ndescription: \"Automate Google Docs tasks via Rube MCP (Composio): create, edit, search, export, copy, and update documents. Always search tools first for current schemas.\"\nrequires:\n  mcp: [rube]\n---\n\n# Google Docs Automation via Rube MCP\n\nCreate, edit, search, export, and manage Google Docs documents programmatically using Rube MCP (Composio).\n\n**Toolkit docs**: [composio.dev\/toolkits\/googledocs](https:\/\/composio.dev\/toolkits\/googledocs)\n\n## Prerequisites\n- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)\n- Active connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `googledocs`\n- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas\n\n## Setup\n**Get Rube MCP**: Add `https:\/\/rube.app\/mcp` as an MCP server in your client configuration. No API keys needed \u2014 just add the endpoint and it works.\n\n1. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds\n2. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `googledocs`\n3. If connection is not ACTIVE, follow the returned auth link to complete setup\n4. Confirm connection status shows ACTIVE before running any workflows\n\n## Core Workflows\n\n### 1. Create a New Document\nUse `GOOGLEDOCS_CREATE_DOCUMENT` to create a new Google Doc with a title and initial text content.\n```\nTool: GOOGLEDOCS_CREATE_DOCUMENT\nParameters:\n  - title (required): Document filename\/title\n  - text (required): Initial text content to insert into the document\n```\n\n### 2. Search for Documents\nUse `GOOGLEDOCS_SEARCH_DOCUMENTS` to find Google Docs by name, content, date, or sharing status.\n```\nTool: GOOGLEDOCS_SEARCH_DOCUMENTS\nParameters:\n  - query: Search query string\n  - max_results: Limit number of results\n  - modified_after \/ created_after: Filter by date\n  - shared_with_me: Filter shared documents\n  - starred_only: Filter starred documents\n  - include_shared_drives: Search shared drives\n  - order_by: Sort results\n  - page_token: Pagination token\n```\n\n### 3. Update Document Content with Markdown\nUse `GOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWN` to replace the entire content of a document with Markdown-formatted text.\n```\nTool: GOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWN\nParameters:\n  - id (required): Document ID\n  - markdown (required): Markdown content to replace entire document body\n```\n\n### 4. Find and Replace Text\nUse `GOOGLEDOCS_REPLACE_ALL_TEXT` to replace all occurrences of a string in a document.\n```\nTool: GOOGLEDOCS_REPLACE_ALL_TEXT\nParameters:\n  - document_id (required): Target document ID\n  - find_text (required): Text to search for\n  - replace_text (required): Replacement text\n  - match_case: Case-sensitive matching (boolean)\n  - search_by_regex: Use regex for find_text\n  - tab_ids: Specific tabs to search\n```\n\n### 5. Export Document as PDF\nUse `GOOGLEDOCS_EXPORT_DOCUMENT_AS_PDF` to export a Google Doc to PDF format.\n```\nTool: GOOGLEDOCS_EXPORT_DOCUMENT_AS_PDF\nParameters:\n  - file_id (required): Document file ID\n  - filename: Output PDF filename\n```\n\n### 6. Copy a Document\nUse `GOOGLEDOCS_COPY_DOCUMENT` to duplicate an existing Google Doc.\n```\nTool: GOOGLEDOCS_COPY_DOCUMENT\nParameters:\n  - document_id (required): Source document ID to copy\n  - title: Title for the new copy\n  - include_shared_drives: Search shared drives for the source\n```\n\n## Common Patterns\n\n- **Search then edit**: Use `GOOGLEDOCS_SEARCH_DOCUMENTS` to find a document by name, then use the returned document ID with `GOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWN` or `GOOGLEDOCS_REPLACE_ALL_TEXT` to modify it.\n- **Create from template**: Use `GOOGLEDOCS_COPY_DOCUMENT` to duplicate a template, then `GOOGLEDOCS_REPLACE_ALL_TEXT` to fill in placeholder text.\n- **Retrieve then update**: Use `GOOGLEDOCS_GET_DOCUMENT_BY_ID` to read current content, then apply edits with `GOOGLEDOCS_UPDATE_EXISTING_DOCUMENT`.\n- **Batch text insertion**: Use `GOOGLEDOCS_INSERT_TEXT_ACTION` to insert text at specific positions (by index) or append to the end of a document.\n- **Share documents**: Combine with `GOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCE` (googledrive toolkit) to share documents after creation.\n\n## Known Pitfalls\n\n- `GOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWN` replaces the **entire** document content -- it does not append. Use it for full rewrites only.\n- `GOOGLEDOCS_INSERT_TEXT_ACTION` requires a precise `insertion_index` (character position). Set `append_to_end: true` to safely add text at the end.\n- `GOOGLEDOCS_UPDATE_EXISTING_DOCUMENT` requires constructing an `editDocs` request body with raw Google Docs API batch update requests -- consult the API documentation for the correct structure.\n- Document IDs and file IDs are the same value for Google Docs, but parameter names differ across tools (`id`, `document_id`, `file_id`).\n- `GOOGLEDOCS_SEARCH_DOCUMENTS` uses Google Drive search syntax for the `query` parameter (e.g., `name contains 'report'`).\n\n## Quick Reference\n| Action | Tool | Key Parameters |\n|--------|------|----------------|\n| Create document | `GOOGLEDOCS_CREATE_DOCUMENT` | `title`, `text` |\n| Search documents | `GOOGLEDOCS_SEARCH_DOCUMENTS` | `query`, `max_results`, `modified_after` |\n| Get document by ID | `GOOGLEDOCS_GET_DOCUMENT_BY_ID` | `id` |\n| Update with Markdown | `GOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWN` | `id`, `markdown` |\n| Programmatic edits | `GOOGLEDOCS_UPDATE_EXISTING_DOCUMENT` | `document_id`, `editDocs` |\n| Insert text | `GOOGLEDOCS_INSERT_TEXT_ACTION` | `document_id`, `text_to_insert`, `insertion_index` |\n| Find and replace | `GOOGLEDOCS_REPLACE_ALL_TEXT` | `document_id`, `find_text`, `replace_text` |\n| Export as PDF | `GOOGLEDOCS_EXPORT_DOCUMENT_AS_PDF` | `file_id`, `filename` |\n| Copy document | `GOOGLEDOCS_COPY_DOCUMENT` | `document_id`, `title` |\n\n---\n*Powered by [Composio](https:\/\/composio.dev)*\n","use_cases":["Create a new Google Doc with a title and initial text content.","Search for documents by name, content, or sharing status.","Replace all occurrences of a string in a document.","Export a Google Doc to PDF format.","Copy an existing document to create a duplicate."],"limitations":[],"compatibility":[],"setup_tip":"**Get Rube MCP**: Add `https:\/\/rube.app\/mcp` as an MCP server in your client configuration. No API keys needed \u2014 just add the endpoint and it works.\n\n1. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds\n2. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `googledocs`\n3. If connection is not ACTIVE, follow the returned auth link to complete setup\n4. Confirm connection status shows ACTIVE before running any workflows","sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/ComposioHQ\/awesome-claude-skills\/blob\/be2a406907dbc61b73e6827ded415c96139d13a2\/composio-skills\/googledocs-automation\/SKILL.md","source_commit":"be2a406907dbc61b73e6827ded415c96139d13a2","license":null,"version":null,"listing_approved_at":"2026-11-20","created_at":"2026-11-19T18:03:21.000000Z","updated_at":"2026-11-20T07:26:51.000000Z","seo_title":"Google Docs Automation with Rube MCP","seo_description":"Automate Google Docs tasks like creating, editing, searching, and exporting documents using Rube MCP. Streamline document workflows with Composio.","seo_keywords":["Google Docs automation","Rube MCP integration","Google Docs API","Document management automation","Google Docs editing","Google Docs search"]}}