capture_viewport
Render the current Blender viewport to a file or return a base64-encoded image for programmatic use.
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.
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 |
|---|---|---|---|
| width | No | ||
| height | No | ||
| filepath | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||