add_tab
Add a tab to a control surface layout buffer with customizable title, grid dimensions, and display mode. Returns the tab index.
Instructions
Add a tab to the buffer. Returns its index.
mode: "grid" (default 2-D — controls span row x col) or "flow" (legacy row-banded; use for a full-page map/chat/cardList or a plain form). row_height: points per row-unit in 2-D mode (default 56).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | square.grid.2x2 | |
| mode | No | ||
| rows | No | ||
| title | Yes | ||
| columns | No | ||
| row_height | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |