mimic_build_table
Build a full data table in one API call using your design system components. Eliminates the need for cell-by-cell insertion, reducing tool calls from 200+ to 1.
Instructions
Bulk table builder — creates an entire data table in ONE call: column frames, DS Table header cell + Table cell components, variants (cellVariants for per-value badge colors), text, and consistent row height. Use for ANY HTML data table instead of cell-by-cell insertion; reduces 200+ tool calls to 1. Requires table cell components in the DS (returns creation guidance if missing). Key params: parentId, columns (header/style/cellVariants), rows ("text|supporting" syntax), cellHeight. Phase 2+.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Row data as arrays of strings. Each inner array has one value per column. Use "|" to separate text and supporting text (e.g. "Sarah Chen|sarah@company.com"). Array length must match columns length. | |
| columns | Yes | Column definitions. Each column becomes a vertical frame with a header cell + data cells. | |
| parentId | Yes | Parent node ID to insert the table body into. | |
| cellHeight | No | Fixed height for ALL data cells in pixels. Ensures row alignment across columns. Common values: 44, 56, 64, 72. If omitted, cells use HUG (may cause misalignment). | |
| dataCellKey | No | Component key for Table cell. If omitted, auto-resolved from DS cache/knowledge store. | |
| headerCellKey | No | Component key for Table header cell. If omitted, auto-resolved from DS cache/knowledge store. | |
| headerVariant | No | Variant overrides for all header cells (e.g. {"Checkbox": "False"}). Applied to every header. | |
| firstColumnPaddingLeft | No | DS spacing variable path for extra left padding on header cells and data cells of the FIRST column. Use when the table is inside a card to create visual inset (e.g., 24px/spacing-3xl). Applied via paddingLeftVariable on cells. | |
| lastColumnPaddingRight | No | DS spacing variable path for extra right padding on header cells and data cells of the LAST column. Use when the table is inside a card to create visual inset (e.g., 24px/spacing-3xl). Applied via paddingRightVariable on cells. |