create_data_table
Generate a styled HTML data table with conditional formatting, highlighting max/min values for district statistics, budget breakdowns, or top-N listings.
Instructions
Create a styled, responsive HTML data table with conditional formatting.
Professional table with ranking indicators and value formatting. Highlights max or min value row.
Ideal for: district statistics, budget breakdowns, top-N listings.
Returns: {filepath, title, rows, total_rows, columns}
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": {
"data": "<data>"
},
"name": "create_data_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Row dicts | |
| title | No | Table title | |
| caption | No | Table caption text | |
| columns | No | Columns to include (auto-detected if None) | |
| filename | No | Output filename | data_table |
| max_rows | No | Maximum rows to display | |
| highlight_max | No | True=max, False=min | |
| format_columns | No | {column: 'number'|'pct'|'currency'} | |
| highlight_column | No | Column to highlight max/min row |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||