Skip to main content
Glama

Google Workspace MCP Server

by ZatesloFL

find_and_replace_doc

Locate and substitute specific text within a Google Doc. Specify user email, document ID, and text to find and replace. Optionally match case for precise adjustments. Returns replacement count for confirmation.

Instructions

Finds and replaces text throughout a Google Doc.

Args: user_google_email: User's Google email address document_id: ID of the document to update find_text: Text to search for replace_text: Text to replace with match_case: Whether to match case exactly

Returns: str: Confirmation message with replacement count

Input Schema

NameRequiredDescriptionDefault
document_idYes
find_textYes
match_caseNo
replace_textYes
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "document_id": { "title": "Document Id", "type": "string" }, "find_text": { "title": "Find Text", "type": "string" }, "match_case": { "default": false, "title": "Match Case", "type": "boolean" }, "replace_text": { "title": "Replace Text", "type": "string" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "user_google_email", "document_id", "find_text", "replace_text" ], "type": "object" }

Other Tools from Google Workspace MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZatesloFL/google_workspace_mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server