close_target
Closes a Chrome page or tab by its target ID, letting you clean up browser targets during debugging. Fails on the currently attached target, preventing accidental loss of the active session.
Instructions
Close a target (page/tab) by its ID. Cannot close the currently attached target.
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": {
"targetId": "<targetId>"
},
"name": "close_target"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetId | Yes | Target ID of the page/tab to close |