render_ldraw_file
Renders LDraw model files (.ldr, .mpd, .dat) to PNG images with multiple stitched views, letting you visually inspect LEGO builds before sharing or reviewing them.
Instructions
Render an LDraw model file (.ldr/.mpd/.dat) to a PNG image.
Views are rendered at each comma-separated azimuth (degrees) and stitched side by side. Higher samples = cleaner but slower. Bounds: resolution 32..2048 px per view, samples 1..1024, 1..8 azimuths, and resolution^2 x samples x views at most 2**27. A referenced file the LDraw library lacks is left out of the picture and named in a text block after the image.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "render_ldraw_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| samples | No | ||
| azimuths | No | -60,120 | |
| resolution | No |