close_tab
Close a specific browser tab by window and tab index, but use with caution due to high risk of targeting the wrong tab if tabs are reordered or closed. Recommended alternative: close_tab_by_id.
Instructions
⚠️ LEGACY DANGER: Close a specific tab using window/tab index. HIGH RISK of closing wrong tabs due to index shifting when tabs are reordered/closed. STRONGLY DEPRECATED: Use close_tab_by_id instead. Only use if Tab ID is unavailable.
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": {
"windowIndex": "<windowIndex>",
"tabIndex": "<tabIndex>"
},
"name": "close_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabIndex | Yes | DANGEROUS: Tab index (1-based) - changes when tabs are reordered | |
| windowIndex | Yes | DANGEROUS: Window index (1-based) - can target wrong window |