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.
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 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"tabIndex": {
"description": "DANGEROUS: Tab index (1-based) - changes when tabs are reordered",
"exclusiveMinimum": 0,
"type": "integer"
},
"windowIndex": {
"description": "DANGEROUS: Window index (1-based) - can target wrong window",
"exclusiveMinimum": 0,
"type": "integer"
}
},
"required": [
"windowIndex",
"tabIndex"
],
"type": "object"
}