render_drawing
Renders a CAD drawing or a specified region to a PNG image with a pixel-to-drawing-coordinate mapping, so you can zoom, filter layers, or highlight entities for inspection.
Instructions
Draw the drawing (or part of it) as a PNG image and return it with the mapping from pixels to drawing coordinates. The PNG is also saved in the output folder. Uses 1 call.
bbox: [xmin, ymin, xmax, ymax] to zoom in. layers: only these layers. highlight_ids: entity IDs to mark. width_px: the long side in pixels (default 1600, at most 2576).
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_drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | ||
| path | Yes | ||
| layers | No | ||
| width_px | No | ||
| use_edits | No | ||
| highlight_ids | No |