pptx_delete_slide
Remove a slide from a PowerPoint deck by specifying its index. Does not allow deleting the last slide to maintain at least one slide in the file.
Instructions
Remove a slide from the deck.
Refuses to delete the last remaining slide (VAL-PPTX-024):
the deck must always have at least one slide. After deletion
the remaining slides keep their relative order, but indices
past index shift down by one (VAL-PPTX-023 / -026).
Args:
path: Path to an existing .pptx.
index: 0-based slide index.
folder: Optional base folder for relative paths.
Returns:
{"ok": True}.
Raises:
OfficeMCPError: ERR_INVALID_PARAMS for a non-int or
out-of-range index, or when the deck has only one
slide; ERR_FILE_NOT_FOUND if the file is missing;
ERR_UNSUPPORTED_FMT for non-.pptx extensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| index | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||