Manage a window
windowClose a selected desktop application by ID, title, or app name, read back its state, and report any save prompt without answering.
Instructions
close: close the window (one close message, read back; a "save?" prompt is reported, never answered).
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": {
"action": "<action>"
},
"name": "window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| window | No | Window id from windows, or a unique part of its title or app; omitted: the window of the last look |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | closed, hidden or open | |
| status | Yes | Outcome: opened, verified, unknown, prompted, unmet, sent-unconfirmed… | |
| prompts | No |