edit_slide_zip
Update multiple files in a slide's ZIP and reimport them in one operation, including adding chart XML and relationships; new chart files are registered automatically in Content_Types.
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": {
"slideIndex": "<slideIndex>",
"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>" } | |
| slideIndex | Yes | Zero-based slide index | |
| presentationId | No | Target presentation ID from list_presentations. Optional when only one presentation is connected. |