unreal_take_screenshot
Capture a high-resolution PNG screenshot of the Unreal editor viewport for visual checks. Frame the shot with the viewport camera tool first, then save to a specified path.
Instructions
Capture a high-resolution screenshot of the editor viewport to a PNG file.
Unreal writes the file asynchronously, so the path is returned before the
image is guaranteed to be on disk; allow a moment before reading it. Frame
the shot first with unreal_set_viewport_camera.
Args: params (ScreenshotInput): Validated input containing: - filename (str): Absolute output path for the PNG - width (int): Width in pixels, 64-7680 (default 1920) - height (int): Height in pixels, 64-4320 (default 1080)
Returns: str: JSON confirming the request: { "requested": bool, "filename": str, # Where Unreal was told to write "resolution": [int, int], "note": str # Reminder that the write is asynchronous } On failure: "Error: "
Examples: - Use when: producing a visual check of the level after placing actors - Don't use when: you need a final production render (use Movie Render Queue via unreal_execute_python)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |