replace_doc_text
Find and replace text across the entire document.
destructiveGoogle Sheets, Docs & Drive
Call it
In an AI client (MCP)
{
"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
| Name | Type | Description |
|---|---|---|
documentIdrequired | string | the Google Docs document ID. |
findrequired | string | Text to find (literal, not regex). |
replace | string | Replacement text. Default: empty (deletes occurrences).Default: "" |
matchCase | boolean | If True, match is case-sensitive. Default: False.Default: false |
Result
Every tool answers {notification, data, human_action}; data carries:
- { occurrencesChanged: N }