set_window_rect
Move and/or resize the active window by specifying new screen position and dimensions. Automatically restores the window from maximized or minimized state before applying changes.
Instructions
Move and/or resize the current session's root window. Restores the window to normal state first (move/resize fail while maximized or minimized). Pass null for any of x/y/width/height to leave that dimension unchanged.
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": {
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "set_window_rect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | New screen x position, or null to leave unchanged | |
| y | Yes | New screen y position, or null to leave unchanged | |
| width | Yes | New width, or null to leave unchanged | |
| height | Yes | New height, or null to leave unchanged |