visualize_data
Render Vega-Lite charts from registered datasets directly in chat, turning complex multi-dimensional data into clear visual insights by mapping fields to visual channels.
Instructions
A tool to render a Vega-Lite visualization of a registered dataset directly in the chat. When to use this tool:
When the dataset is complex or multi-dimensional and a visual representation would be more informative than text.
Not useful for single data points. How to use this tool:
Upload the dataset first using the upload_data tool, then reference it by name here.
Analyze the dataset's structure and fields to determine which fields map to which visual channels (x, y, color, size, etc.).
Construct a Vega-Lite specification for the desired chart type. Consult the Vega-Lite documentation (https://vega.github.io/vega-lite/docs) and example gallery (https://vega.github.io/vega-lite/examples) for guidance.
Ensure the spec is a valid instance of the Vega-Lite schema: https://vega.github.io/schema/vega-lite/v6.json. Do not include a "data" key — it is injected automatically from the registered dataset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| spec | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |