> ## 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 Slides presentations using alt text or regular text

Finds and replaces specific text content in Google Slides presentations using alt text or regular text

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

## Inputs

| Field               | Type                                          | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------- | --------------------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `presentation`      | string                                        | Yes      | -       | Google Slides presentation URL or ID. You must ask the user for it if not provided.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `search_method`     | string or SelectableOption                    | Yes      | -       | Method to identify elements for text replacement: 'alt\_text' - Find elements by their alt text property (RECOMMENDED) 'regular'  Find and replace text within slide content   **Always use and recommend alt text method for reliability.**   Tell users they need to:  1. Insert a text box in their slides  2. Right-click on text boxes in their slides Select "Alt Text"   3. Add unique identifiers (e.g., "Cost", "Conversions")  4. Use these alt text values in the find/replace operation   Alt text prevents issues when slide content changes and ensures consistent targeting.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `update_type`       | string or SelectableOption                    | Yes      | -       | Choose how to provide the text replacement data. Available options: 'all' - Use data from previous steps containing find/replace pairs, 'mapped' - Define individual text replacements manually                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `text_replacements` | object                                        | No       | -       | Manual text replacements as key-value pairs where key is text to find and value is replacement text. REQUIRED when update\_type is 'mapped'. MUST BE NULL/EMPTY when update\_type is 'all' - clear this field if update\_type changes to 'all'.  Supports markdown formatting (alt\_text method only). The only supported formats are: - **bold** for bold text - *italic* for italic text - \[link text]\(url) for clickable links  Example: \{'Cost': '**522.5**', 'Conversions': '\{\{nodeId\_\_data.conversions}}'}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `structured_data`   | array (also accepts a comma-separated string) | No       | -       | Data source containing text replacement pairs. REQUIRED when update\_type is 'all'. This will be mainly the output of an upstream node like AI structured output. MUST BE NULL/EMPTY when update\_type is 'mapped' - clear this field if update\_type changes to 'mapped'.  Supports multiple flexible input formats:  1. Single dictionary with key-value pairs (keys become 'find', values become 'replace'):    \{"cost": "14.77", "impressions": "62"}  2. List with one dictionary with key-value pairs:    \[\{"cost": "14.77", "impressions": "62"}]  3. Standard find/replace format (existing functionality):    \[\{"find": "old text", "replace": "new text", "slide\_number": 1}]  Optional 'slide\_number' field can target specific slides in any format.  Note: Lists with multiple dictionaries are only supported when using the standard find/replace format. For key-value transformation, provide either a single dictionary or a list with one dictionary.  Note: the text type can be either 'alt\_text' or 'regular'. Works with both, use alt\_text for best results.  Supports markdown formatting in replacement values (alt\_text method only). The only supported formats are: **bold**, *italic*, and \[link]\(url).  Examples: '\{\{nodeId\_\_data}}' The node output can be any of the above formats. |
| `slide_number`      | integer                                       | No       | -       | Optional slide number to target for text replacement (1-based indexing like seen in Slides UI). Leave empty to replace text in all slides. Only applies when update\_type is 'mapped'. Must be a positive integer if specified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `str`

Returns success message with replacement count.
