Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.trueparser.com/llms.txt

Use this file to discover all available pages before exploring further.

CAD

Use this contract for CAD drawing results. It is designed for teams that need to move drawings into downstream automation, search, RAG, estimation, analytics, and audit workflows while keeping geometry, layers, and entity structure readable in the public output.

Top-level envelope

{
  "schema_version": "1.0",
  "document": {},
  "warnings": [],
  "content": []
}

Document fields

FieldNotes
formatNormalized source format such as DWG or DXF.
format_familyAlways cad.
document_nameDisplay name for the drawing.
source_filePreserved source file name.
source_formatRaw source format label.
document_formatDocument format label when present.
unitsNormalized consumer-facing units.
source_unitsSource unit label when present.
versionDrawing version.
title, subject, companyReserved document metadata.
schema_version, schemaVersionPublic contract markers.
author, source_authorNormalized author and raw source author.
createdCreation timestamp when available.
source_engineParser identity.
metadataAdditive document metadata.
extentsDrawing-level extents.
layer_count, block_count, block_entity_count, entity_countSummary counts when available.
layers, blocks, blockEntities, entitiesPublic drawing collections.

Universal content/block shape

CAD content records use the public base record shape when they are materialized as records.
FieldNotes
idStable record id.
typePublic record type.
orderDeterministic emission order when present.
pathStable public path or hierarchy label.
parent_idParent record id when relevant.
depthStructural depth.
source_refProvenance object when available.
is_inferredIndicates whether the record was inferred.
warningsRecord-local human-readable notes.
content_hashOptional orchestrator hash.
textPlain-text projection for search.
attributesCAD-specific structured data.
Entity records can also carry geometry, bbox, centroid, wkt, coverageState, space, containerId, children, relations, and properties.

Warnings

  • warnings is always present.
  • Use plain strings.
  • Keep warnings human-readable.
  • Do not use warnings to hide loss of geometry or identity.

What clients can rely on

  • Drawing identity stays stable.
  • Layer, block, and entity names stay public and readable.
  • Geometry and traceability stay separate.
  • Additive fields do not break older clients.
  • The public contract does not expose internal transport or worker details.

Example

{
  "schema_version": "1.0",
  "document": {
    "format": "DWG",
    "format_family": "cad",
    "document_name": "drawing.dwg",
    "source_file": "drawing.dwg",
    "units": "Millimeters",
    "version": "AC1032",
    "metadata": {},
    "layers": [],
    "blocks": [],
    "blockEntities": {},
    "entities": [
      {
        "id": "A1",
        "type": "LINE",
        "space": "model",
        "containerId": "25",
        "properties": {}
      }
    ]
  },
  "warnings": [],
  "content": []
}
Last modified on April 28, 2026