browser.close_tab
Close a specific browser tab by index to manage multiple open tabs during automated browsing sessions.
Instructions
Close one tab index if more than one tab is open.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| index | Yes |
Implementation Reference
- controller/app/tool_gateway.py:1004-1006 (handler)The handler implementation for `browser.close_tab` which delegates the call to the session manager.
async def _close_tab(self, payload: TabActionInput) -> dict[str, Any]: return await self.manager.close_tab(payload.session_id, payload.index) - controller/app/tool_gateway.py:422-426 (registration)Registration of the `browser.close_tab` tool in the McpToolGateway.
name="browser.close_tab", description="Close one tab index if more than one tab is open.", input_model=TabActionInput, handler=self._close_tab, ),