doc_render_preview
Render the active 3D document's bodies to a PNG preview image, returning coverage, triangle count, body list, and renderer used; inspect details with orthographic projection or zoom.
Instructions
Renders the active document's bodies to a PNG image (4:3) as view.render does with its defaults, on the renderer it chooses (the GPU when the session has one, as craft3d-cli mcp does, else the CPU renderer, as in a window), and returns it with the coverage, triangle count, body list and which renderer drew. For a detail: projection orthographic with a box or a zoom.
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": "doc_render_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | No | Two opposite corners [[x, y, z], [x, y, z]] in document units: frame this box instead of the whole model. | |
| mode | No | shaded (default), or ids: one flat colour per face. | |
| view | No | Default iso. | |
| zoom | No | Magnifies about the centre of the picture. Default 1. | |
| max_side | No | Longest side of the image in pixels. Default 1024. | |
| tolerance | No | Chordal tolerance of the mesh in document units. Default: between a quarter and half a pixel of the picture where it shows the model nearest, never finer than the floor (2e-4 of the diagonal of the box around the bodies), at most 12 degrees per chord, within a total budget of a million triangles (so a close-up box or a larger picture is finer). Give one to fix it. | |
| projection | No | Default perspective. orthographic shows lengths across the view to scale: use it to check a detail or a top view. |