Dea DardanicaDocumentation
Workspaces and tabsRead Markdown

close_tab

Close a tab (from list_tabs; the active one if tab_id is omitted). Use it to clean up tabs you opened. Refuses to close the last tab.

Example#

Call this MCP tool with the argument object below. Replace illustrative IDs, selectors, local paths, and project URLs with values observed in your session.

json
{
  "tab_id": "TAB_ID_FROM_LIST_TABS"
}

Usage notes#

Close only tabs whose work is finished. Unsaved page content can be lost.

Result#

Closes the specified tab, or the selected tab when omitted, and reports the outcome. Refuses to close the last tab.

Results arrive in MCP content blocks. Most structured results are JSON in text blocks; image tools can include image blocks. Handle errors and partial or truncated data. No formal output schema is declared for this tool.

Parameters#

close_tab — table 1
ParameterTypeRequiredDescription
tab_idstringNoWhich tab (default: the active one)
tabstringNoTab name or id in your workspace; does not change the visible tab. minLength: 1

Full input schema#

The schema includes nested shapes and constraints. Additional semantic constraints can apply at runtime; read the description and usage notes.

json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "tab_id": {
      "description": "Which tab (default: the active one)",
      "type": "string"
    },
    "tab": {
      "description": "Tab name or id in your workspace; does not change the visible tab.",
      "type": "string",
      "minLength": 1
    }
  },
  "additionalProperties": false
}

Reference conventions · Agent operating guide · Troubleshooting