close_window
Closes a window gracefully by sending WM_CLOSE, giving applications the chance to prompt for saving unsaved changes.
Instructions
Gracefully close a window (sends WM_CLOSE).
The application may prompt the user to save before closing.
Parameters
hwnd: The window handle.
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": {
"hwnd": "<hwnd>"
},
"name": "close_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||