Close a browser window
browser_close_windowCloses an entire Firefox window and every tab in it. Pass a tab or window context ID to choose the window, or omit it to close the active tab’s window.
Instructions
Close a whole window — every tab in it (BiDi browsingContext.close on a top-level context). Without a context it acts on the active tab is NOT what happens here: it closes the window that tab belongs to, so check first. browser_close_tab closes a single tab instead.
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_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | A tab or window context id; the top-level window it belongs to is closed (default: active tab window) |