Close all agent tabs
browser_close_all_tabsClose every tab the agent opened, including those opened by its clicks, and remove its tab group when done. Tabs taken over with browser_use_tab are released, not closed; unsaved state is lost.
Instructions
Close every tab the agent opened, including tabs its clicks opened, and remove its tab group. Tabs taken over with browser_use_tab are released back to the user, not closed. Call this when finished with the browser so no empty group is left in the user's tab strip. The MCP process also runs this automatically when the Computer Use session ends. Unsaved state in the agent's tabs is lost.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_close_all_tabs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |