Open tab(s)
open_tabAttach one or more new tabs with fresh shells to an existing window, or merge panes into an existing tab. Returns the new tab or pane ids for programmatic workspace setup.
Instructions
Attach one or more new tabs to an existing window (defaults to the first window), each with fresh shells — the programmatic equivalent of hyperpanes --attach. Returns the new tab ids. Use this (not open_pane) to add a whole tab, or several tabs, in one call. Pass as:"panes" to instead merge ALL the given panes into one existing tab (returns the new pane ids): tabId if given, else the calling pane's own tab when no windowId is given either, else the window's ACTIVE tab. With no windowId, new tabs open in the calling pane's window. Each group is one tab: { title?, color?, layout?, panes:[{ command?, args?, label?, cwd?, shell?, color?, meta? }] }. A group color ("#rrggbb"/"#rgb") is the new tab's manual colour, the same one recolor_tab sets (it overrides a pane-group colour); a pane color is that pane's frame colour.
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": {
"groups": "<groups>"
},
"name": "open_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | ||
| tabId | No | with as:"panes": merge the panes into this existing tab (a tabId from list_panes) instead of the active one. Needs a hyperpanes app with attach `tabId` support; an older app merges them into the active tab | |
| groups | Yes | ||
| windowId | No |