safari_close_tab
Closes a Safari tab specified by window ID and one-based tab index, requiring human approval before the action runs.
Instructions
Close a tab identified by window ID and one-based tab index. Prompts for human approval. [v1.0.0; permissions: automation:Safari]
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>",
"_idempotencyKey": "<_idempotencyKey>"
},
"name": "safari_close_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabIndex | Yes | ||
| windowId | Yes | ||
| _approvalId | No | ID of the exact action approved by a human in the macOS Agent Bridge extension | |
| _idempotencyKey | Yes | Client-generated unique key, required for writes; reuse only with identical arguments, including while waiting for approval |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| tool | Yes | tool name | |
| error | Yes | ||
| status | Yes | ||
| version | Yes | semantic version |