Window Control
window_controlControl application window state on Wayland: minimize, maximize, restore, focus, or close a target window using an action and optional PID.
Instructions
Controls window state across any active Wayland compositor (KDE, GNOME, Hyprland, Sway).
Supported actions:
'minimize': Minimizes the target application window.
'maximize': Maximizes the target application window.
'restore': Restores or unminimizes/unmaximizes the target application window.
'focus': Activates and brings the target application window to the foreground.
'close': Requests a clean close of the target window.
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_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | The target application PID. Defaults to the active managed application. | |
| action | Yes | The desired window management action. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||