Close Tab
tab_closeClose a tab by index or default to the active tab. Prevents closing the last tab and returns the new active tab snapshot.
Instructions
Close a tab by index. Defaults to the active tab. Cannot close the last remaining tab. Returns a snapshot of the new active tab.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID. | |
| tabIndex | No | Tab index to close. Omit to close the active tab. |