tabs_close_mcp
Close a single session tab by its id to tidy up a page that has served its purpose. Requires a valid id from tabs_context_mcp; closing the last tab blanks it instead.
Instructions
Shut one tab out of the session tab group, addressed by id - the way you tidy up once a page has served its purpose. tabId is required, and has to be an id tabs_context_mcp reported: a tab from one of your own windows, or one that is already gone, is refused rather than quietly ignored. Ids are handed out in sequence and never reused, so a closed one stays invalid for the rest of the session. Shutting the last remaining tab empties the group; a later tabs_context_mcp that passes createIfEmpty, or any tabs_create_mcp, builds a fresh one. Firefox never closes its own final tab, so that one is blanked to about:blank instead and reused for the next tab you ask for.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Id of the tab to close, an integer taken from tabs_context_mcp. It has to be one of the tabs this session opened for itself. |