# replace_doc_text (https://sellersheetai.com/docs/mcp-api/tools/replace_doc_text)

> Find and replace text across the entire document.

Access: **DESTRUCTIVE** · toolset google_workspace · family null

## Call it

MCP tool call:

```json
{
  "name": "replace_doc_text",
  "arguments": {
    "documentId": "<documentId>",
    "find": "<find>"
  }
}
```

Tool API (early access — contact us):

```bash
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>"}'
```

## Arguments

| Name | Type | Required | Description |
|---|---|---|---|
| `documentId` | string | yes | the Google Docs document ID. |
| `find` | string | yes | Text to find (literal, not regex). |
| `replace` | string |  | Replacement text. Default: empty (deletes occurrences). |
| `matchCase` | boolean |  | If True, match is case-sensitive. Default: False. |

## Result

- { occurrencesChanged: N }