r7_slide_create
Create a new PPTX deck or append a slide to an existing one, reusing its layout, master and theme without altering the slides already there.
Instructions
Create a new PPTX deck, or append a slide to an existing one built on one of the deck's own layouts. Appending never modifies the slides already present, and the layout, master and theme the deck already has are reused rather than replaced. Pass baseSlideIndex to clone an existing slide instead of using a layout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Text for the new slide's title placeholder (or for slide 1 when creating a deck). | |
| filePath | Yes | Path to the PPTX file. A missing file is created as a new deck; an existing one gets a new slide. | |
| subtitle | No | Text for the subtitle placeholder, when the layout has one. | |
| layoutName | No | Layout name, e.g. "Титульный слайд". Matched exactly first, then as a substring. | |
| layoutType | No | PowerPoint layout type: title, obj, twoObj, blank, titleOnly, picTx, secHead. | |
| outputPath | No | Write to a copy instead of editing in place. | |
| paragraphs | No | Body text, one entry per paragraph. An entry may be a string, or { text, runs?, bullet?, numbered?, alignment?, size?, color? }. | |
| layoutIndex | No | 0-based layout to build from, as listed by r7_slide_read. Omit for a sensible default ("heading and content"). | |
| baseSlideIndex | No | Clone this existing slide instead of building from a layout. |