insert_slide
Insert a slide from a selected layout into a PowerPoint deck, keeping placeholder inheritance intact. Optionally specify the slide position. The file is saved atomically with backup to prevent corruption.
Instructions
Add a slide built from a layout (name, or 0-based global index; list_elements kind='layouts' lists them), carrying the layout's placeholder skeleton so inheritance binds. position: 0-based final index, default end. Whole decks start via create_presentation (design pack). Saves atomically with two-slot backup; backup=False skips rotation. live='auto' edits the open PowerPoint copy when the file is locked by it (edits stay UNSAVED until live_save); 'force' targets the open session; 'off' refuses locked files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | auto | |
| backup | No | ||
| layout | Yes | ||
| position | No | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||