edit_slide_zip
Update multiple files inside a slide ZIP and reimport them in one operation. Modify existing XML or add new files such as charts, with automatic Content_Types registration for new chart files.
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.
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": {
"slide": "<slide>",
"files": "<files>"
},
"name": "edit_slide_zip"
}
}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>" } | |
| slide | Yes | Slide number, 1-based (slide 1 = first slide) | |
| presentationId | No | Target presentation ID from list_presentations. Optional when only one presentation is connected. |