unity_screenshot_editor_window
Capture a Unity EditorWindow to PNG without requesting keyboard focus. Use only on explicit user request; hidden tabs need activateTab and ambiguous names return id: options.
Instructions
Capture an existing EditorWindow to PNG (Windows PrintWindow) without requesting keyboard focus. Hidden tabs require activateTab:true; ambiguous names return id: candidates. GPU/minimized windows can refuse capture. USE ONLY ON EXPLICIT USER REQUEST; never proactively or for your own inspection. On macOS/Linux report unsupported, do not retry; use Game/Scene captures there.
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 | Full type name, simple name, tab title, or id: selector from candidates. | |
| activateTab | No | Temporarily select an existing tab, then restore its predecessor (default false; newer plugins). Does not request keyboard focus. | |
| maxDimension | No | Max side (default 8192, clamped to GPU). Full window and crop each limited to 33554432 pixels. |