pptx_reorder_slides
Reorder slides in a PowerPoint file by moving a slide from its current index to a specified destination index.
Instructions
Move a slide from one position to another.
This is a true move: the slide at from_index is removed
first, then inserted at to_index in the resulting sequence
(VAL-PPTX-027). So moving slide 0 to position 2 in a 3-slide
deck [A, B, C] yields [B, C, A], not the swap result
[C, B, A].
Reordering a slide to its own index (from_index == to_index)
is a no-op that still returns {"ok": True}
(VAL-PPTX-028).
Args:
path: Path to an existing .pptx.
from_index: 0-based index of the slide to move.
to_index: 0-based destination index. Must satisfy
0 <= to_index < slide_count (after the slide is
removed from from_index).
folder: Optional base folder for relative paths.
Returns:
{"ok": True}.
Raises:
OfficeMCPError: ERR_INVALID_PARAMS for a non-int or
out-of-range from_index / to_index, in which
case the deck is left unchanged (VAL-PPTX-029);
ERR_FILE_NOT_FOUND if the file is missing;
ERR_UNSUPPORTED_FMT for non-.pptx extensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| from_index | Yes | ||
| to_index | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||