browser_close_tab
Close a specific browser tab by ID within the current session, returning whether it closed or stayed open due to a prompt or busy page.
Instructions
Close a browser tab by ID. Only tabs owned by the current session can be closed. If it is the last tab in Chrome's last window, an empty tab is left in that window (kept_window_open: true), because closing the window would close Chrome and disconnect the extension. If Chrome does not close the tab within 4 s (a "Leave site?" prompt or a busy page), the answer is tab-not-closed and the tab stays in the session.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tab_id": "<tab_id>"
},
"name": "browser_close_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | Tab ID to close (get from browser_list_tabs) | |
| partition | No | Run this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead. |