create_visualization
Generate charts from dataset sessions to reveal patterns. Supports histogram, scatter, bar, box, line, heatmap, pie, area, violin, and density plots with grouping/aggregation options.
Instructions
Generate a chart visualization from the dataset session. Supports chart types: 'histogram', 'scatter', 'bar', 'box', 'line', 'heatmap', 'pie', 'area', 'violin', 'density'. Parameters: x (horizontal column), y (vertical column), group_by (color/hue dimension), aggregation ('mean', 'sum', 'count', 'median', 'min', 'max'), bins (for histogram), columns (list of numeric cols for correlation heatmap), title (custom title), embed_thumbnail (default true). Returns the complete base64 image inline in 'thumbnail_b64' and saved file path. Render the inline image immediately to the user — DO NOT run bash or shell commands to locate or move the file.
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": {
"session_id": "<session_id>",
"chart_type": "<chart_type>"
},
"name": "create_visualization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| bins | No | ||
| title | No | ||
| sample | No | ||
| columns | No | ||
| group_by | No | ||
| chart_type | Yes | ||
| session_id | Yes | ||
| aggregation | No | mean | |
| embed_thumbnail | No |