window
Control desktop applications, focused panes, and displays at the OS level: list, focus, arrange, minimize, close, resize, and open apps, files, or URLs.
Instructions
Windows, apps and displays at the OS level. For what is INSIDE a window use accessibility; for a web page's DOM browser. Read: list (every open app: process, pid, window count; titles and bounds only for windows clawdcursor opened or worked in), active (the focused window), list_displays (monitors, bounds, DPI), screen_size. Arrange (target with processName, processId or a title substring; none = the foreground window): focus, maximize, minimize, restore, resize (x, y, width, height). close asks the app to close, like its ✕: unsaved work can be lost, so ask the user first unless they asked for it. Open: open_app (name; launches or focuses), open_file (path, default app; an .exe/.app is executed), open_url (url, default browser), navigate (url, in clawdcursor's own browser), switch_tab (index 1–9, or direction). Returns text: the window list, or one line saying what happened; a failure says why.
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 |
|---|---|---|---|
| x | No | New X (top-left origin, logical px) | |
| y | No | New Y (top-left origin, logical px) | |
| url | No | https:// or http:// URL | |
| name | No | Application name (e.g. "notepad", "calc", "mspaint", "Outlook", "Chrome") | |
| path | No | Absolute filesystem path | |
| index | No | Jump to tab N (1-based, 1-9). If omitted, direction must be provided. | |
| space | No | resize: "screen" (default) = the units `list` and `accessibility` report; "image" = screenshot pixels. | |
| title | No | Window title substring to match | |
| width | No | New width in logical px | |
| action | Yes | Which sub-action to perform. See this tool's description for the enum of valid values. Required: open_app: name; open_file: path; open_url/navigate: url. | |
| expect | No | Checks run after the action; a failed check returns DEVIATION. Example: [{"type":"window_title_contains","value":"Inbox"}]. Fields: value for *_contains; name for app_running and element_exists; name+value for element_value_contains; path for file_*. State an outcome you can observe, not the text you typed. | |
| height | No | New height in logical px | |
| direction | No | Cycle "next" or "previous". Ignored when `index` is given. | |
| processId | No | List only this process's windows, with titles | |
| processName | No | List only this app's windows, with titles (name contains this, any case) |