close_tab
Close a specific tab by its ID to clean up browser resources. Provides the new active tab ID or null when no tabs remain.
Instructions
Closes a specific tab by its registered Tab ID. Side effects: destructive - removes the tab from the registry and closes it in Chrome; if it was the active tab, another registered tab becomes active. Prerequisites: the tab must exist (see 'list_tabs'). Returns: structured JSON with the closed 'tab_id' and the new 'active_tab_id' (null when no tabs remain). Use this to clean up tabs you no longer need. Alternatives: 'close_instance' to stop a whole Chrome instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | The Tab ID of the tab to close (e.g. 'tab-1'). | |
| instance_id | No | Chrome instance id from open_instance/list_instances. Omit for the default instance. |