unity_screenshot_editor_window
Capture an occluded Unity Editor window (Inspector, Project, Console) to a PNG file without stealing focus. Works on Windows only.
Instructions
Capture a specific Editor window (Inspector, Project, Console, custom) to a PNG file via Win32 PrintWindow — works even when occluded, no focus steal. USE ONLY ON EXPLICIT USER REQUEST — never proactively or for your own inspection. WINDOWS EDITOR ONLY: on macOS/Linux it returns { success:false, platform } — do not retry, tell the user it's unavailable there. For game/scene views use unity_screenshot_game / unity_screenshot_scene (cross-platform).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Save path ending in .png (default: Assets/Screenshots/EditorWindow_<time>.png). | |
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| window | Yes | EditorWindow type FullName (e.g. 'UnityEditor.InspectorWindow'), simple type name, or tab title. | |
| maxDimension | No | Max pixels per side (default 8192, clamped to GPU max). |