focus_window
Bring a specified Electron BrowserWindow to the front by showing, focusing, and moving it to top; omit the window ID to use the first window or set show:false to focus a hidden window.
Instructions
Bring an Electron BrowserWindow forward (show, focus, moveTop). Requires inspectMain. Omit windowId to use the first window. Pass show:false to focus without showing 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": "focus_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| show | No | Call show() before focus. Default true. | |
| windowId | No | BrowserWindow.id from webcontents_topology | |
| processId | No | Process ID. If omitted, uses the single running app. |