Add a slide
slide_addInsert a new MDX slide into a deck at a chosen index or append it, with optional vertical stacking, frontmatter, and speaker notes; lint the deck afterward.
Instructions
Insert a new slide. at is the index it will have (default: the end); vertical puts it beneath the previous slide in the same column. content is the MDX body without separators or frontmatter; put options in frontmatter (e.g. { layout: 'two-cols' }) and speaker notes in notes (use [click] markers to pace them). The deck is linted afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Index the new slide gets (default: append). | |
| dir | No | Deck folder (contains deck.mdx). Absolute, or relative to the server's folder. Default: the server's folder. | |
| notes | No | Speaker notes (Markdown). | |
| content | Yes | MDX body, e.g. '## Title\n\n- point' | |
| vertical | No | Stack beneath the slide before it (reveal.js vertical slide). | |
| frontmatter | No | Slide frontmatter keys (see deck_reference slideFrontmatter). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| deck | Yes | ||
| files | Yes | ||
| notes | Yes | ||
| slide | Yes | ||
| action | Yes | ||
| slides | Yes | ||
| diagnostics | Yes |