ppt_add_slide
Add a new slide to a PowerPoint presentation with a title, body content, and layout selection. Optionally create a backup before modifying the file.
Instructions
Add a new slide to a PowerPoint presentation (.pptx).
Args:
file_path: Path to the PowerPoint file.
title: Title for the slide.
content: Optional content text for the body placeholder.
layout_idx: Slide layout index (0=Title Slide, 1=Title and Content). Default 1.
backup: If True, create a backup of the original file before modifying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| backup | No | ||
| content | No | ||
| file_path | Yes | ||
| layout_idx | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |