Close Tab
tab_closeClose browser tabs by index or active selection in Leapfrog MCP sessions. Returns a snapshot of the new active tab while preventing closure of the final remaining tab.
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. |