Create a PowerPoint deck
pptx_create_deckCreate spec-compliant PowerPoint decks from declarative slide definitions. Clone slides from an existing template to preserve branding, or start from a default theme; every generated file is validated.
Instructions
Build a .pptx from a declarative list of slides (see pptx_list_layouts for the archetype catalog). Bring-your-own-template mode: pass template (your existing company .pptx) and a stencilSlideIndex per slide - each new slide is cloned from that template slide, inheriting its masters, layout, theme and branding, then refilled with your content. New slides are APPENDED after the template's existing slides (this preserves spec-correctness; the template must contain at least one slide to clone). Omit template to build a fresh deck from a neutral default theme. Every call is self-certifying: output is validated against the same OOXML checklist pptx_validate uses before it's returned. Returns the file as a base64 resource plus a summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Presentation title (metadata, not a slide). | |
| slides | Yes | The slides to build, in order. | |
| template | No | Optional existing .pptx to use as the brand template. When given, every slide needs a stencilSlideIndex. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| valid | Yes | ||
| byteLength | Yes | ||
| violations | Yes | ||
| slidesAdded | Yes | Number of new slides created (appended, in template mode). |