Close a tab
browser_close_tabClose a single Firefox tab by context ID, 0-based index, or active tab without terminating the browser; the response reports remaining tabs and warns if none are left.
Instructions
Close one tab (browsingContext.close). MEASURED: this closes only that tab; the browser keeps running. Pick the tab by context id (from browser_list_tabs), by 0-based index among the tabs of the active window, or default to the active tab. The reply states how many tabs remain, and warns when none are left — at that point Firefox itself may exit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | 0-based index among the active tabs of the active window | |
| active | No | Close the active tab (default when neither context nor index is given) | |
| context | No | BiDi context id of the tab to close (preferred) |