DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-cad

d

dsh-cad

Manifest valid

Read-only CAD tools that inspect, extract and export DWG/DXF drawings, including SVG and PNG previews and DXF conversion.

hasBundlePatch

dsh-cad-plugin

English · 中文

Read-only DWG/DXF tools for DeepSeek Harness: inspect, extract and export CAD drawings — including SVG/PNG previews and DWG-to-DXF conversion — without ever modifying the input file.

License: MIT

  • Three native tools — cad_inspect, cad_extract, cad_export.
  • Read-only by design — the source drawing is never edited; outputs go to a separate directory.
  • Resource-guarded — file size, entity, vertex, image and output-byte limits, plus worker-thread isolation and hard timeouts.
  • Round-trip validated — DXF output is reopened and checked for text, entity-type and layer mismatches.

Installation

From the dsh-market plugin market: open the market, find dsh-cad-plugin and click install. Or install by name from the command line:

dsh plugin --profile <your-profile> add dsh-cad-plugin

To install from a local checkout (development):

dsh plugin --profile dshcadtest add .
dsh --profile dshcadtest --dump-config

Usage

Once installed, the three CAD tools are available to the model. Put a .dwg or .dxf file in the profile's workspace (the session working directory) and ask about it in natural language — the model resolves the file path and calls the right tool for you:

"Inspect plan.dwg and summarize its layers and blocks." "Extract all texts from ./drawings/floorplan.dxf to CSV." "Render an SVG preview of plan.dwg (Model layout, white background)."

Paths may be absolute (C:\drawings\plan.dwg) or relative to the workspace (plan.dwg, ./plan.dwg).

Note on attaching files: the DeepSeek Harness Web composer's attachment button currently accepts images only. To work with a CAD file, reference it by path or filename as shown above rather than attaching it.

Tools

ToolPurpose
cad_inspectDrawing metadata, units, bounds, layers, blocks and entity statistics.
cad_extractExtract texts, layers, blocks or entities; optional JSON/CSV report.
cad_exportSVG or PNG preview, or DXF conversion.

All tools return JSON: a successful result, or { ok:false, error:{ code, message, details } }.

Parameters

  • cad_inspect — path (required).
  • cad_extract — path, section (texts|layers|blocks|entities, required); optional layers, entityTypes, limit, offset, search, handle, window, nearest, summary, saveAs (json|csv), outputName.
  • cad_export — path, format (svg|png|dxf, required); optional layers, layout, width, height, background, outputName.

Examples

{"path":"./plan.dwg"}

cad_inspect returns version/unit objects, header and actual bounds, layer flags, model/paper-space and block statistics, resource counts and a bounded warning summary.

{"path":"./plan.dwg","section":"texts","limit":200,"saveAs":"csv","bom":true}

cad_extract supports texts, layers, blocks and entities; filters and limits are applied before records are returned. CSV cells beginning with =, +, - or @ are protected against formula injection.

{"path":"./plan.dwg","format":"svg","layout":"Model","background":"#ffffff"}

cad_export supports SVG, PNG and validated Unicode binary DXF. SVG/PNG results include output bytes, SHA-256, bounds, source/expanded/rendered/skipped counts, unsupported-type counts and preview completeness. DXF conversion reopens the output and compares text, entity types and layers; severe mismatches return CONVERSION_VALIDATION_FAILED.

Configuration

All values are optional; the defaults below apply unless overridden in the plugin config.

KeyDefaultMeaning
outputDir./cad-outputDirectory for exported reports and previews.
maxFileSizeMB50Maximum input file size.
maxEntities200000Maximum parsed entities.
maxExtractItems500Default record limit for extraction.
maxImageDimension8192Maximum PNG width/height in pixels.
maxImagePixels64000000Maximum total PNG pixels.
maxWarningSamples50Warning samples returned per run.
maxBlockDepth16Maximum nested-block expansion depth.
maxBlockInstances10000Maximum expanded block instances.
maxConcurrent2Maximum concurrent CAD jobs.
maxWorkerTimeMs30000Hard timeout for worker-isolated parse/render.
maxSvgBytes20000000Maximum SVG output bytes.
maxCsvBytes20000000Maximum CSV output bytes.
maxTextLength1000000Maximum single text length.
maxTotalVertices5000000Maximum total vertices.
maxEntityVertices500000Maximum vertices per entity.
allowedInputRoots(unset)Optional allow-list of input roots; when set, paths outside it return INPUT_OUTSIDE_ALLOWED_ROOTS.

Outputs are isolated from inputs, and existing files are never overwritten.

Error codes

Input and access — FILE_NOT_FOUND, PERMISSION_DENIED, NOT_A_FILE, READ_FAILED, UNSUPPORTED_FORMAT, INPUT_OUTSIDE_ALLOWED_ROOTS.

Limits — FILE_TOO_LARGE, ENTITY_LIMIT_EXCEEDED, TEXT_LIMIT_EXCEEDED, GEOMETRY_LIMIT_EXCEEDED, RENDER_LIMIT_EXCEEDED, OUTPUT_LIMIT_EXCEEDED, OUTPUT_EXISTS.

Arguments and parse — INVALID_ARGUMENT, LAYOUT_NOT_FOUND, PARSE_FAILED.

Conversion and export — CONVERSION_FAILED, CONVERSION_VALIDATION_FAILED, EXPORT_FAILED, OUTPUT_FAILED.

Runtime — CANCELLED, TIMEOUT.

Preview fidelity

The SVG/PNG preview renders lines, circles, arcs, ellipses, splines, hatches, polylines (including closed/bulge paths), text/MText/attributes, inserts with nested transforms and arrays, points, solids and leaders. Raster images, wipeouts, meshes and unsupported proxy entities are reported in unsupportedEntityTypes. Paper Space is selected with layout; Model is the default.

License

MIT

Compatibility

DSH 0.1.7-rc.2: failedDSH 0.2.1-alpha.4: failedDSH 0.1.7-rc.1: failed

Versions

Latest versionPublishedSize
0.1.0——

Comments

Loading…

Similar plugins

cadcraft-plugin

by full-aigc-plugins

Draw, inspect, and export 2D CAD drawings, with a reopened DXF check before delivery.

Manifest valid

★ 0

Apache-2.0

JavaScript

Oct 24, 2026

dsh plugin --profile web add cadcraft-plugin

by qingmumingyang

DSH 文档读写工具包 - PDF/DOCX/XLSX/CSV 读写与 PDF 导出(利用dsh制作的,希望能帮到你们)

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 1

MIT

JavaScript

Oct 19, 2026

dsh plugin --profile web add dsh-doc-toolkit

by Mrdifferent2022

Parametric CAD tools for DeepSeek Harness (dsh) — agent-driven mechanical design: CadQuery modeling, geometry validation, preview rendering, STEP/IGES/STL/3MF export

Manifest valid

★ 0

MIT

TypeScript

Oct 9, 2026

dsh plugin --profile web add dsh-cad

by fourzkw

DSH 右侧栏的可编辑画布 + AI 语义绘图工具(diagram_apply / diagram_read),直接读写原生 .drawio 文件

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 51

↓ 1.7k/wk

MIT

JavaScript

Oct 26, 2026

dsh plugin --profile web add dsh-drawai

by Duoasa

Read and edit native Figma layers through a local companion automatically generated and paired by DSH; capture screenshots, export assets, and provide design context for frontend implementation in the

Tools & CapabilitiesManifest valid

★ 30

MIT

JavaScript

Oct 28, 2026

dsh plugin --profile agent add dsh-to-figma

Provides the see_image tool for DSH: send an image file to a configurable OpenAI-compatible vision model and relay its description back to a text-only model.

Tools & CapabilitiesManifest valid

★ 0

↓ 47/wk

dsh plugin --profile web add dsh-tool-see-image