edit_slide_zip
Updates multiple files inside a slide ZIP and reimports them in one operation, letting you modify existing XML or add new chart files with automatic Content_Types registration.
Instructions
Update multiple files in the slide zip and reimport in a single operation. Accepts a map of { path: content } — can modify existing files or add new ones (e.g. chart XML + rels). Auto-registers Content_Types for new chart files. Use read_slide_zip first to get the current content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Map of { zipPath: newContent }. Can include existing paths (to modify) or new paths (to add). Example: { "ppt/slides/slide1.xml": "<p:sld>...</p:sld>", "ppt/charts/chart1.xml": "<c:chartSpace>...</c:chartSpace>" } | |
| slideIndex | Yes | Zero-based slide index | |
| presentationId | No | Target presentation ID from list_presentations. Optional when only one presentation is connected. |