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.
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": {
"figure": "<figure>"
},
"name": "render_figure_html"
}
}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 |