render_figure_html
Render a Plotly figure specification as a standalone HTML document string for embedding or saving as a viewable artifact.
Instructions
Render a Plotly figure spec to a standalone HTML document string.
The returned HTML can be saved as a .html file or embedded directly. Use this when a consumer wants a portable, viewable artifact rather than the raw figure JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| figure | Yes | A Plotly figure spec (object with optional 'data' and 'layout'), the same shape create_figure accepts. | |
| inline_plotlyjs | No | If True, inline the full plotly.js (~3MB) for a fully self-contained file. Defaults to False, which loads plotly.js from a CDN (much smaller output, needs internet to render). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |