focus_window
Brings an Electron BrowserWindow to the foreground by showing and focusing it, optionally moving it to the top. Omit windowId to target the first 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. |