make_table
Generate formatted tables from your data using ASCII grid, Unicode box-drawing, or Markdown pipe formats. Automatically right-align numeric columns and account for CJK character widths.
Instructions
Render data as a table.
Args: headers: Optional list of column header strings rows: List of data rows, each a list of strings data: Alias for rows -- pass data here if you prefer (cannot use both) fmt: "grid" (default) for ASCII grid, "box" for Unicode box-drawing, "pipe" for Markdown pipe table, "safe" for char-count padding style: Table style (for grid fmt). One of: mysql, separated, compact, gfm, reddit, rounded, rst, box, unicode, dots auto_format: Auto-detect numeric columns (right-align) and center headers safe_width: Count zero-width combining marks as width 1 (for Discord/browsers)
Returns: Formatted table as a Markdown code block (grid/box/safe) or raw pipe table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| headers | No | ||
| rows | No | ||
| data | No | ||
| fmt | No | grid | |
| style | No | mysql | |
| auto_format | No | ||
| safe_width | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |