preview_slide
Extract a single slide preview (image, video, or GIF) from rendered slides without compiling the deck. Specify scene, slide index, and output format to get a quick visual check.
Instructions
Extract a single-slide preview (image or video) without compiling the deck.
Reads the rendered slide configuration for ``scene`` and produces a preview
of the slide at ``slide_index``: an image frame (png/jpg/webp), a video
snippet (mp4), or an animated GIF.
Args:
scene: Name of the rendered Scene/Slide class to preview.
slide_index: Zero-based index of the slide within the scene.
output_format: Preview format: "png", "jpg", "jpeg", "webp", "mp4",
or "gif". Defaults to "png".
folder: Directory containing the rendered slide assets (default "slides").
workspace_dir: Working directory. Defaults to the ``WORKSPACE_DIR``
environment variable or the current directory.
timeout: Maximum time in seconds to wait for ffmpeg preview generation.
Returns:
A JSON string with the preview status, output path, and format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | Yes | ||
| folder | No | slides | |
| timeout | No | ||
| slide_index | No | ||
| output_format | No | png | |
| workspace_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |