describe_plot
Generate Plotly figures from data and natural-language descriptions. Handles open-ended chart requests by writing and running Python code, returning the figure as JSON.
Instructions
Build a Plotly figure from data and a natural-language description.
An AI agent (Gemini, driven by opencode running on the server) writes and runs Python plotting code against the provided data to satisfy the description, then returns the resulting figure as JSON, the same shape quick_plot and create_figure return. Slower than the other tools because it runs a full code-generation loop, but it handles open-ended chart requests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Rows of data as a list of JSON objects (records). | |
| description | Yes | Natural-language description of the chart you want, e.g. 'grouped bar chart of sales by region and quarter'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |