close_tab
Closes a specified Microsoft Edge tab or the active tab when no ID is provided, enabling MCP clients to manage open browser tabs.
Instructions
Close a tab. If no targetId is given, closes the active tab. If the last tab is closed, Edge's behavior depends on the user-data-dir.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "close_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetId | No | Tab to close. Omit to close the active tab. |