export_plot
Export a plot to HTML, PNG, or SVG format and retrieve the encoded content for saving or displaying.
Instructions
Export a plot to a specified format and return the encoded content.
Returns the exported content as base64 (for binary formats) or raw text (for HTML). The AI assistant can then save it to a file or display it.
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": {
"plot_id": "<plot_id>"
},
"name": "export_plot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Override width in pixels | |
| format | No | Export format — 'html', 'png', 'svg' | html |
| height | No | Override height in pixels | |
| plot_id | Yes | ID of the plot to export |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |