pptx_add_slide
Add a slide to a PowerPoint presentation. Specify layout, title, and insertion position to control slide content and order.
Instructions
Add a new slide to an existing presentation.
Common layout_index values (use pptx_list_masters to see all):
0: Title Slide
1: Title and Content (default - has title + bullet area)
5: Title Only (good for tables or custom content)
6: Blank
Args: file_path: Path to the .pptx file layout_index: Which layout to use (default: 1 = Title and Content) title: Optional title text for the new slide position: Where to insert - 'end' (default), 'start', or 1-based slide number (e.g. '2' to make it slide 2) output_path: Optional output path (defaults to overwriting input)
Returns: Status with new slide_number
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the .pptx file | |
| layout_index | No | Which layout to use (default: 1 = Title and Content) | |
| title | No | Optional title text for the new slide | |
| position | No | Where to insert - 'end' (default), 'start', or 1-based slide number (e.g. '2' to make it slide 2) | |
| output_path | No | Optional output path (defaults to overwriting input) |