render_view
Generate a PNG or SVG image of a 3D model with adjustable viewpoint, clipping plane, and per-object colors.
Instructions
Render model. format: 'png' (raster, default), 'svg' (HLR line drawing — works without a display, no shading but precise edges), or 'both' (returns the PNG and SVG together — useful when you want shaded depth cues plus crisp edge geometry). If the raster path fails (typically headless host with no display backend) and format='png', the server falls back to SVG automatically. Renders confirm appearance, not geometry — verify boolean operations with measure() before rendering. direction: top, front, side, iso. objects: comma-separated names or name:color pairs e.g. 'u_frame:blue,roller:red' (default: all, auto-coloured). quality: standard, high. clip_plane: x, y, z to slice; clip_at: absolute world coordinate along that axis (default: each mesh's midpoint). azimuth/elevation: camera rotation in degrees applied after the direction preset. save_to: optional file path; for format='both' the PNG and SVG are written as <save_to>.png and <save_to>.svg.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | iso | |
| objects | No | ||
| quality | No | standard | |
| clip_plane | No | ||
| clip_at | No | ||
| azimuth | No | ||
| elevation | No | ||
| save_to | No | ||
| format | No | png |