Close browser tab
browser_close_tabClose an open browser tab, discarding any unsaved page state to free up the agent's workspace. Tabs borrowed from the user are released instead of closed.
Instructions
Close one of the agent's tabs, discarding any unsaved page state. A tab taken over with browser_use_tab is released rather than closed — it belongs to the user. Use browser_close_all_tabs to clean up everything at the end of a task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | 1-based position within the agent's tabs; fallback mode only, when tab_id is unavailable | |
| tab_id | No | tab_id of one of the agent's tabs, from browser_open_tab or browser_list_tabs | |
| session_id | No | Stable task or thread ID. Pass the same value on every browser call for this task. Different IDs isolate tabs and cleanup within one MCP process. Omit for the default process session. |