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.
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": "create_figure"
}
}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 |