close_tab
Close a browser tab by its index and automatically shift focus to an active remaining tab.
Instructions
Close a specific browser tab using its index.
Purpose
Allows the agent to close tabs that are no longer needed. After closing, focus automatically shifts to a valid remaining tab.
Parameters
session_id : str Active browser session identifier. index : int Index of the tab to close.
Returns
dict { "session_id": str, "status": str, "message": str }
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": {
"session_id": "<session_id>",
"index": "<index>"
},
"name": "close_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| session_id | Yes |