> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace Text

> Finds and replaces specific text content in Google Docs documents

Finds and replaces specific text content in Google Docs documents

|                      |                     |
| -------------------- | ------------------- |
| **App**              | Google Docs         |
| **Operation ID**     | `docs_replace_text` |
| **Type**             | Action              |
| **Connection**       | `drive` (optional)  |
| **Credits per run**  | 1                   |
| **Agent / MCP tool** | Yes                 |

## Inputs

| Field               | Type   | Required | Default | Description                                                                                                  |
| ------------------- | ------ | -------- | ------- | ------------------------------------------------------------------------------------------------------------ |
| `document`          | string | Yes      | -       | Enter the URL or ID of the Google Doc you want to modify                                                     |
| `text_replacements` | object | No       | -       | Define text replacements by specifying what to find and replace (key: text to find, value: replacement text) |

## Output

**Type**: `str`

Returns success message with replacement count.
