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).
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": {
"title": "<title>"
},
"name": "add_tab"
}
}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 |