tab_close
Close a browser tab by target ID or close the current tab when no ID is provided, then switch to another open tab automatically.
Instructions
Close a tab by its target ID, or the current tab if omitted. When the current tab is closed, attaches to another open tab.
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": "tab_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetId | No | Target ID of the tab to close (default: current tab) |