Build Chart Config
build_chart_configBuilds a complete chart configuration for ui_config.json from chart parameters, enabling AgentUI Dash to render dashboard charts without manual config assembly.
Instructions
Build a complete chart config dict for ui_config.json.
⚠️ IMPORTANT: The color field in charts is a COLUMN NAME for grouping,
NOT a hex color. If you want a single-color chart, omit color entirely.
Hex colors (like "#246bfd") are only for KPI cards, not charts.
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": {
"chart_json": "<chart_json>"
},
"name": "build_chart_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chart_json | Yes | JSON string with chart parameters: { "tipo": "bar", "sql": "SELECT branch, SUM(total_usd) AS Sales FROM sales GROUP BY branch", "titulo": "Sales by Branch", "x": "branch", "y": "Sales", "alto": 380 } |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |