dxf_render
Render DXF files as PNG previews locally without AutoCAD. Specify DPI and background color for engineering drawing snapshots.
Instructions
把 DXF 渲染成 PNG 预览图(纯本地,不需要打开 AutoCAD)。
Args: path: 源 DXF 文件。 png_path: 输出 PNG 路径。 dpi: 分辨率,默认 150(100~300)。 background: 背景色,"white"/"black"/"dark" 或 #RRGGBB。
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>",
"png_path": "<png_path>"
},
"name": "dxf_render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| path | Yes | ||
| png_path | Yes | ||
| background | No | white |