serve_revealjs_html
Start a local HTTP server to preview an exported Reveal.js HTML deck. Provide the deck path and get a URL to open in your browser.
Instructions
Serve an exported Reveal.js HTML deck on a local HTTP server for preview.
Starts an ephemeral background HTTP server that serves the workspace so the
deck's relative slide assets resolve, and returns a URL that can be opened
in a browser (optionally opening it automatically).
Args:
dest: Path to the exported HTML deck (e.g., "presentation.html"). Resolved
relative to ``workspace_dir`` when not absolute.
workspace_dir: Working directory. Defaults to the ``WORKSPACE_DIR``
environment variable or the current directory.
host: Bind address for the server (default "127.0.0.1").
port: Port to bind. When None, an ephemeral OS-assigned port is used.
open_browser: When True, attempt to open the URL in the default browser.
Returns:
A JSON string with the preview URL, bound port, served directory, and
whether an existing server was reused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest | Yes | ||
| host | No | 127.0.0.1 | |
| port | No | ||
| open_browser | No | ||
| workspace_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |