Open tab(s)
open_tabAttach new terminal tabs or panes to a window, each with fresh shells, and get their IDs. Use to add multiple tabs or merge panes into the active tab.
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 the window's ACTIVE tab (returns the new pane ids). Each group is one tab: { title?, layout?, panes:[{ command?, args?, label?, cwd?, shell?, color?, meta? }] }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | ||
| groups | Yes | ||
| windowId | No |