focus_ide
Bring a running Delphi or Lazarus IDE window to the foreground and restore it if minimized, ensuring the IDE is visible and active for reliable UI automation and screenshots.
Instructions
Restore the Delphi/Lazarus IDE window and bring it to the foreground.
Finds a running RAD Studio / Delphi / Lazarus IDE and:
If minimized, calls ShowWindow(SW_RESTORE) to un-minimize it.
Calls SetForegroundWindow to make it the active window.
This is the precondition for many IDE-driven workflows: observe_ide's screenshot is more reliable on a foreground window (the Windows Graphics Capture path can't reach GPU-composited Skia panels behind other windows), and any UI automation needs the window visible. Call this first whenever you're about to interact with the IDE.
Returns a one-line confirmation with the window title, or a clear error if no IDE is running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |