browser_closeTab
Close a browser tab by target ID, or the active tab when none is specified. Cannot close the last remaining tab; use browser_restart instead.
Instructions
Close a browser tab by targetId. If no targetId provided, closes the active tab. Cannot close the last remaining tab — use browser_restart instead.
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": "browser_closeTab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetId | No | Target tab ID to close (optional, defaults to active tab) |