window_action
Control desktop windows by focusing, minimizing, maximizing, restoring, or closing them. Identify a window using its handle or title to perform the desired action.
Instructions
Focus, minimize, maximize, restore or close a window.
close is destructive - it sends the window a close request and the app may
prompt to save. Identify the window by handle or title.
Args: params (WindowActionInput): target window plus the action to run.
Returns: str: JSON confirming the action, or an error if the window was not found.
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": {
"params": "<params>"
},
"name": "window_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |