Close Window
window_closeCloses an active macOS window via its accessibility close button. Requires confirmation to avoid losing unsaved changes.
Instructions
Close a window by pressing its AXCloseButton. Destructive — unsaved changes in the window may be lost. Requires Accessibility permission.
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": {
"windowHandle": "<windowHandle>"
},
"name": "window_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to execute this destructive action. | |
| windowHandle | Yes | A windowHandle from window_list or window_get_active. |