pilot_tab_close
Close a browser tab by its ID, or the current tab if no ID is given. Use to remove popups or unwanted tabs.
Instructions
Close a browser tab by its ID, or close the currently active tab if no ID is specified. Use when the user wants to close a popup, remove an unwanted tab, or clean up after finishing work in a tab.
Parameters:
id: Tab ID to close (omit to close the current active tab). Use pilot_tabs to list tab IDs.
Returns: Confirmation that the tab was closed.
Errors:
"No such tab": The provided tab ID does not exist. Run pilot_tabs to see valid IDs.
"Cannot close last tab": The last remaining tab cannot be closed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Tab ID to close |