set_window_bounds
Move or resize an Electron BrowserWindow by setting x, y, width, and height; omit any field to leave it unchanged. Requires inspectMain and does not reveal hidden windows.
Instructions
Move or resize a BrowserWindow. Omit a field to leave it unchanged. Requires inspectMain. Does not show a hidden window.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_window_bounds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| width | No | ||
| height | No | ||
| windowId | No | BrowserWindow.id from webcontents_topology | |
| processId | No | Process ID. If omitted, uses the single running app. |