capture_screenshot
Capture a PNG from the Game View or Scene View and return it as an image content block, plus a text summary. view=game re-renders a single camera (Camera.main, else the first camera found) into an offscreen texture: Screen Space - Overlay canvases, UI Toolkit panels, and other cameras’ output are not included, so it is not a copy of what the Game View window shows.
Category: Diagnostics
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
view |
string | "game" |
Which view to capture. One of: game, scene |
|
width |
integer | 0 |
Screenshot width (0 = use current) | |
height |
integer | 0 |
Screenshot height (0 = use current) | |
supersampling |
integer | 1 |
Supersampling factor for higher quality (1-4) | |
save_to_file |
string | Optional file path to save the screenshot (relative to project or absolute) | ||
camera_position |
object | Scene View pivot point the camera orbits and looks at (only for scene view) | ||
camera_rotation |
object | Scene View camera rotation in euler angles (only for scene view) | ||
camera_size |
number | Scene View orthographic size / perspective distance (only for scene view) |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "capture_screenshot", "arguments": {}}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "capture_screenshot", "args": { … }}. See SuperSave mode.
Source
Section titled “Source”Generated from Assets/NanoraUnityMCP/Editor/Tools/CaptureScreenshotTool.cs (version 1.2.1). The client receives the same schema from tools/list.