Set Window State
window_set_stateChange a window's state to minimize, restore, maximize, fullscreen, or hide/show the owning app, using a window handle. Requires Accessibility permission.
Instructions
Change a window's state: minimize, restore, maximize, fullscreen, hide (owning app), or show (owning app). 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>",
"state": "<state>"
},
"name": "window_set_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| windowHandle | Yes | A windowHandle from window_list or window_get_active. |