create_figure
Construct and validate a Plotly figure from a full figure spec, returning it as a JSON string.
Instructions
Construct and validate a Plotly figure from a full figure spec.
Use this when you want full control over traces and layout. The server builds the figure, which surfaces schema errors, and returns it as a JSON string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| figure | Yes | A Plotly figure spec: an object with optional 'data' (a list of trace objects) and 'layout' keys, as accepted by plotly.graph_objects.Figure(). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |