close_safari_tab
Close a Safari tab by specifying its index (1-based) or use -1 to close the current tab.
Instructions
Close a Safari tab. Use -1 for current tab or specify tab index (1-based)
Args: tab_index: Tab index to close (-1 for current tab, or 1-based index)
Returns: Success or error message
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_safari_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |