apple_safari_close_tab
Close a specific Safari tab by window and tab index after verifying its expected URL. Use when a tab is no longer needed, though unsaved page input may be lost.
Instructions
Close a Safari tab; unsaved page input may be lost. Requires its previously observed URL.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"windowId": "<windowId>",
"tabIndex": "<tabIndex>",
"expectedUrl": "<expectedUrl>"
},
"name": "apple_safari_close_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabIndex | Yes | ||
| windowId | Yes | ||
| expectedUrl | Yes |