Skip to main content

Overview

The Google Docs server enables AI assistants to interact with Google Docs, providing document creation, content retrieval, search capabilities, and collaboration features through the Google Docs and Drive APIs.

How to Add Google Docs

1

Add Server

Add the Google Docs server to your Civic environment through the server directory.
2

Authorize

Simply log in with your Google account and approve the OAuth consent request. No admin approval needed.
3

Test Connection

Try “List my Google Docs” to verify the connection works.
Simple OAuth Consent: Google Docs uses standard Google OAuth consent. Works with personal Google accounts and Google Workspace without special admin approval.

What You Can Do

Document Search

Search for Google Docs by name and list documents in folders

Content Access

Read content from Google Docs and Office files (.docx)

Document Creation

Create new Google Docs with optional initial content

Collaboration

Read, create, reply to, and resolve document comments

Available Tools (8)

Security note: This server provides read access and document creation. It does not include bulk edit or find-and-replace operations. create_doc can write new documents to any accessible Drive folder. For automated agents, consider guardrails if write access should be restricted. See Guardrails.

Document Operations

Search for Google Docs by name using Drive API. Returns document IDs, names, modified times, and Drive web links.
Retrieve content of a Google Doc or Drive file by document ID. Native Google Docs are fetched via Docs API. Office files (.docx, etc.) stored in Drive are downloaded and text is extracted.
List Google Docs within a specific Drive folder. Defaults to root folder but can list any folder by ID. Supports configurable page sizes up to 100 documents.
Create a new Google Doc with a title and optional initial content. Returns document ID and link.

Comment Operations

Read all comments from a Google Document including author, creation time, and content.
Create a new comment on a Google Document with specified content.
Reply to a specific comment in a Google Document by comment ID.
Resolve a comment in a Google Document to mark it as complete.

Use Cases

“Find all documents with ‘proposal’ in the name” - Search for specific documents by name.

Content Reading

“Read the content of the project requirements document” - Extract text from Google Docs or Office files.

Folder Navigation

“Show me all Google Docs in my Projects folder” - List documents within specific folders.

Document Creation

“Create a new document called ‘Meeting Notes’ with today’s agenda” - Generate new documents with initial content.

Blank Document Creation

“Create a blank document called ‘Draft Report’” - Create empty documents for later editing.

Comment Reading

“Show me all comments on the design document” - View collaboration feedback and discussions.

Adding Comments

“Add a comment to the document saying ‘Needs review by Friday’” - Provide feedback on documents.

Comment Threads

“Reply to comment ABC123 with ‘Changes completed’” - Participate in document discussions.

Resolving Feedback

“Resolve comment XYZ789 on the document” - Mark feedback as addressed.

Office File Access

“Read the content of the .docx file in my Drive” - Access Microsoft Word documents stored in Google Drive.
File Type Support: Native Google Docs are accessed via Docs API. Office files (.docx, etc.) stored in Drive are downloaded and parsed to extract text content.Search Functionality: Search uses Drive API with mimeType filter for Google Docs. Returns document metadata and links for easy access.Folder IDs: Use 'root' for the user’s main Drive folder or specific folder IDs from Google Drive for organized listing.Comment System: Full comment lifecycle supported - read existing comments, create new ones, reply to threads, and resolve completed discussions.

Guardrails

In addition to the 14 universal guardrails, this server has 21 server-specific guardrails across 9 operations.
GuardrailOperationTimingDescription
Blocked Content Patternscreate_docRequestBlock content containing specific patterns
Blocked Title Keywordscreate_docRequestBlock creation with specific title keywords
Maximum Content Sizecreate_docRequestLimit content field to character count
Comment Blocked Content Patternscreate_document_commentRequestBlock comments containing patterns
Maximum Comment Lengthcreate_document_commentRequestLimit comment content to a character limit
Block Content Access for Dangerous Formatsget_doc_contentResponseBlocks accessing content of files with dangerous formats
Document ID Blocklistget_doc_contentRequestDeny access to specific document IDs
Maximum Content Lengthget_doc_contentResponseTruncate document content to character limit
PII Patterns to Redactget_doc_contentResponseRedact specific patterns from content
Blocked Folder Nameslist_docs_in_folderRequestBlock access to folders with specific names
Maximum Folder List Page Sizelist_docs_in_folderRequestRestrict page_size to a maximum number
Minimum Document Agelist_docs_in_folderResponseHide documents created before a date
Restrict to Allowed Folderslist_docs_in_folderRequestOnly allow listing documents in whitelisted folders
Blocked Comment Contentread_document_commentsResponseFilter comments containing keywords
Filter Comments by Allowed Authorsread_document_commentsResponseRedact comments from non-allowed authors
Blocked Reply Contentreply_to_document_commentRequestBlock replies containing patterns
Maximum Reply Lengthreply_to_document_commentRequestLimit reply content to a character limit
Blocked Search Termssearch_docsRequestBlock searches containing specific keywords
Maximum Search Page Sizesearch_docsRequestRestrict page_size to a maximum number
Sensitive Document Filtersearch_docsResponseFilter out documents with titles containing keywords
Configure guardrails via the Civic UI or ask the Configurator Agent: “Add guardrails to my Google Docs server.”