render_slides
Render HTML slide decks to multiple output formats (PDF, PNG, WebP, PPTX). Supports custom dimensions, scale, orientation, slide range, and selector for pixel-perfect results.
Instructions
Final render to PDF/WebP/PNG/PPTX. Accepts html string OR htmlPath. Supports width, height, selector, scale, webpQuality, orientation, pptxMode, pptxFilename, slideRange. NEVER call render_slides in the same turn as create_slides. When the user provides an existing HTML file path, pass it as htmlPath and call this tool directly — no discover_themes or create_slides needed. For the full slide-creation workflow, REQUIRES both discover_themes AND create_slides first, and ONLY call AFTER user confirms the preview. Returns file paths on disk.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "render_slides"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| htmlPath | No | Path to saved HTML file (from create_slides). Falls back to cached HTML. | |
| html | No | HTML string (prefer htmlPath to save tokens) | |
| selector | No | Slide selector (default: .slide) | |
| width | No | Width px (default: 540) | |
| height | No | Height px (default: 675) | |
| scale | No | Device scale 1-6 (default: 4) | |
| formats | No | Output formats (default: [pdf]) | |
| webpQuality | No | WebP quality 0-100 (default: 95) | |
| outDir | No | Output directory override | |
| pdfFilename | No | Custom PDF filename | |
| pptxFilename | No | Custom PPTX filename | |
| slideRange | No | Render slides N-M, 1-indexed | |
| orientation | No | portrait=540x675, landscape=1920x1080 | |
| pptxMode | No | Default: image (pixel-perfect, preserves design, NOT editable). 'native' is opt-in for text-only export (selectable text but design is NOT preserved — looks broken). For true editable PPTX with shapes/colors, use a different tool. |