replace_doc_text

Find and replace text across the entire document.

destructiveGoogle Sheets, Docs & Drive

Call it

In an AI client (MCP)

tools/call
{
  "name": "replace_doc_text",
  "arguments": {
    "documentId": "<documentId>",
    "find": "<find>"
  }
}

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/replace_doc_text \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"documentId":"<documentId>","find":"<find>"}'
Early access — the Tool API is open on request, contact us.

Arguments

NameTypeDescription
documentIdrequiredstringthe Google Docs document ID.
findrequiredstringText to find (literal, not regex).
replacestringReplacement text. Default: empty (deletes occurrences).Default: ""
matchCasebooleanIf True, match is case-sensitive. Default: False.Default: false

Result

Every tool answers {notification, data, human_action}; data carries:

  • { occurrencesChanged: N }

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude