capture_viewport
Render the current Blender viewport to a specified file or return it as a base64-encoded image, with configurable dimensions.
Instructions
Render the viewport to a file or return as base64.
Args: filepath: Optional absolute path for output image. If empty, returns base64-encoded image. width: Render width in pixels, default 1920. height: Render height in pixels, default 1080.
Returns: Dict with filepath or base64 image data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | No | ||
| width | No | ||
| height | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||