Preview slide (design check only — does NOT save a presentation)
preview_slideRender slide HTML as a PNG image for visual checking before building the final .pptx file.
Instructions
DESIGN-ITERATION TOOL ONLY. Renders a single complete HTML document to a PNG image and saves it to disk, returning the file path (not the image data). Open/view that PNG file with whatever image-reading capability your agent has to check the design — this tool does NOT produce a .pptx and is NOT how a presentation gets delivered. Use it only to check how one slide looks while you're still tweaking its HTML/CSS. Once the user's slides are finalized, you MUST call build_pptx to actually produce the .pptx file — that is the only tool that creates a deliverable presentation file.
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": {
"html": "<html>"
},
"name": "preview_slide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Complete, self-contained HTML document (with inline CSS in a style block) for the slide | |
| width | No | Slide width in px (default 1280) | |
| height | No | Slide height in px (default 720) | |
| outputPath | No | Where to save the preview PNG. Absolute path recommended. If a bare filename or nothing is given, it's saved in the client's workspace root (if the client shares one) or in a configured default folder otherwise. |