apply_text_replacements
Replace text content in PowerPoint slides using JSON specifications to update paragraph content with formatting while clearing unmodified text shapes.
Instructions
Apply text replacements to a PowerPoint presentation using a JSON specification. The JSON should map slide/shape IDs to new paragraph content with formatting. All text shapes are cleared unless explicitly provided with new content.
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": {
"pptx_path": "<pptx_path>",
"replacements_json": "<replacements_json>",
"output_path": "<output_path>"
},
"name": "apply_text_replacements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pptx_path | Yes | Path to the input PowerPoint file | |
| replacements_json | Yes | Path to JSON file with replacement specifications, or inline JSON string | |
| output_path | Yes | Path for the output PowerPoint file |