add_slides
Insert multiple Markdown slides as one contiguous block in a single call, reducing token overhead versus repeated inserts; optionally set insertion index or preview the diff with dry_run.
Instructions
Add multiple slides to the current presentation in a single call, inserted as one contiguous block. Use this instead of repeated add_slide calls when adding several slides at once — it is dramatically cheaper in tokens (one parse + one write for the whole batch). Optionally specify a 1-based insertion index; if omitted, the block is appended. Set dry_run=true to preview the slides.md diff without writing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slides": "<slides>"
},
"name": "add_slides"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | 1-based position where the block is inserted. If omitted, the block is appended at the end. | |
| slides | Yes | Ordered list of slides to insert as one contiguous block. Authoring many slides at once with a single add_slides call is far cheaper than calling add_slide repeatedly: it parses and writes slides.md exactly once instead of once per slide. For decks already written to disk, prefer import_markdown (the content never passes through tokens). | |
| dry_run | No | Preview the change without writing slides.md. Returns dryRun, wouldWrite, and diff. |