capture_viewport
Capture a bounded PNG snapshot of the 3D viewport or active camera without changing scene state, returning base64 image data for inspection or documentation.
Instructions
Capture a bounded visual snapshot of the 3D viewport or active camera without mutating scene state or persistent render settings. Returns base64 PNG data.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "capture_viewport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Capture viewpoint: active interactive 3D viewport ('VIEWPORT') or scene active camera ('CAMERA'). | VIEWPORT |
| view | No | Viewpoint projection or angle: 'CURRENT' (default), 'FRONT', 'SIDE', 'TOP', or 'PERSPECTIVE'. Supported in interactive 3D Viewport or via directional camera capture. | CURRENT |
| width | No | Image resolution width in pixels (bounded 64 to 2048). | |
| format | No | Output image format (PNG only). | PNG |
| height | No | Image resolution height in pixels (bounded 64 to 2048). | |
| samples | No | Render sample count for capture (bounded 1 to 64). |