Add slides
add_slidesAppend Markdown slides to a narrated walkthrough, adding spoken explanations and visuals slide by slide so coding agents can build guided code explanations.
Instructions
Append slides to a walkthrough, written in Markdown.
Calls:
Opening: normally sent in start_walkthrough's
opening(see its example). Only if it was not sent there, the first call carries it and nothing more: the title slide and one or two short spoken sentences. That call returns when the link is playable, with the full guide; send the link to the user then, before anything else.All other calls: first one short slide alone, then one to three whole slides. Never resend earlier Markdown. Never split a slide or its code block across calls.
Replies list problems: fix them in later slides, or replace a broken slide with revise_slide.
Format:
Slide: each #, ## or ### heading starts one. Optional attributes:
## Title {#id .build}; .build reveals parts as cues reach them.Narration: plain paragraphs are spoken, each voiced separately. Put identifiers in
backticks;[text]{say="spoken"}fixes pronunciation.Shown text:
>lines are shown, never spoken; under the first heading, one is the subtitle.Visual: at most one per slide: fenced code, diff,
mermaid diagram,math formula, pipe table, list, or image.
Code from disk, with an empty body and the file's own line numbers in the gutter:
Inline code may set start=10.
Diff:
python old thenpython new blocks;diff with -/+ lines, one hunk per slide; ordiff file=path rev=A (against the working tree) or rev=A..B.List:
- **Title**: text {#id}; without {#id}, the id is the title, lowercased and hyphenated.1.items are steps; .cards on the heading shows cards.Cues are links in narration. The pointer moves when the label's first word is spoken, within the current slide only. label line 12 | #L12-18 a range | label only that text on line 12 | #-L5 old side, #+L7 new side of a diff | #id a list item, card or Mermaid node | #row-2 the second table row, or a {#id} ending its last cell | # the whole visual; label finds that text in it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes | Handle from start_walkthrough. | |
| markdown | Yes | Slides in Markdown: one to three whole slides, nothing already sent. Only when the opening was not sent with start_walkthrough: the first call carries just the title slide and one or two spoken sentences. |