Slides Replace Text In Presentation
slides_replace_text_in_presentationReplaces every occurrence of specified text across all slides in a Google Slides presentation, including template placeholders, and reports how many replacements were made.
Instructions
Replace every occurrence of a piece of text on all slides of a Google Slides presentation, e.g. a template placeholder such as {{name}}. The presentation_id comes from drive_list_files, search_workspace or slides_create_presentation; for any other edit use slides_batch_update_presentation (extended tool tier). Returns status ok, presentation_id and occurrences_changed, the number of replacements (0 when nothing matched).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contains_text": "<contains_text>",
"presentation_id": "<presentation_id>",
"replace_text": "<replace_text>"
},
"name": "slides_replace_text_in_presentation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match_case | No | Match letter case exactly when true; by default matching ignores case. | |
| replace_text | Yes | Text that replaces each occurrence; an empty string deletes the matches. | |
| contains_text | Yes | Exact text to find; every occurrence is replaced. | |
| presentation_id | Yes | Google Slides presentation ID: the Drive file ID, also the long ID in the presentation's URL. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Machine-readable operation status. | |
| presentation_id | No | ||
| occurrences_changed | No |