Aspicio

v0.13.2
io.github.frontsail-ai/aspicio Checked 21 hours ago Published 1 month ago

DXF and PDF/X-4 for AI agents: structured facts, PNG renders, an interactive in-chat viewer.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

describe_dxf Describe a DXF drawing

Return a structured JSON summary of a DXF drawing — units, bounding box, layers (with the color actually drawn), per-type entity counts, and any skipped/unsupported types. Use this to answer structural questions (what layers exist, how many parts, what size, is it to scale) without rendering an image. For a PDF use describe_pdf; if you do not know the format, use describe_doc. Covers the whole drawing by default, including every page of a multi-page PDF; pass `space` (a name from the reply's `spaces`) to scope it to one page or sheet.

ParameterTypeDescription
source *stringAn http(s) URL, a local file path, or inline DXF text. A PDF is binary: pass it as a URL or a path, never inline.
spacestringWhich space to work on: "Model" (a PDF's page 1, a DXF's model space) or a page/layout name as listed in a describe reply's "spaces". Describe omits it for the whole drawing; render defaults to the fi…

render_dxf Render a DXF to an image

Render a DXF drawing to a PNG image you can look at. Use this to answer visual questions (what does it look like, where is a feature, does it look right) — it returns an image, not text. For structural facts, prefer describe_dxf. For a PDF use render_pdf; if you do not know the format, use render_doc. Renders the first page/sheet by default; pass `space` (a name from a describe reply's `spaces`) to render another one.

ParameterTypeDescription
source *stringAn http(s) URL, a local file path, or inline DXF text. A PDF is binary: pass it as a URL or a path, never inline.
spacestringWhich space to work on: "Model" (a PDF's page 1, a DXF's model space) or a page/layout name as listed in a describe reply's "spaces". Describe omits it for the whole drawing; render defaults to the fi…
widthintegerPNG width in pixels (default 1200)

describe_pdf Describe a PDF drawing

Return a structured JSON summary of a PDF drawing — units (points), bounding box, layers, per-type entity counts, the text it contains, and what was skipped (images, shadings, transparency). Use this for structural questions about a PDF without rendering it. For a DXF use describe_dxf; if you do not know the format, use describe_doc. Covers the whole drawing by default, including every page of a multi-page PDF; pass `space` (a name from the reply's `spaces`) to scope it to one page or sheet.

ParameterTypeDescription
source *stringAn http(s) URL, a local file path, or inline DXF text. A PDF is binary: pass it as a URL or a path, never inline.
spacestringWhich space to work on: "Model" (a PDF's page 1, a DXF's model space) or a page/layout name as listed in a describe reply's "spaces". Describe omits it for the whole drawing; render defaults to the fi…

render_pdf Render a PDF to an image

Render a PDF drawing's vector content to a PNG you can look at. Images, shadings, and transparency are not drawn — they are reported by describe_pdf — so this shows line work and text, not a page facsimile. For a DXF use render_dxf; if you do not know the format, use render_doc. Renders the first page/sheet by default; pass `space` (a name from a describe reply's `spaces`) to render another one.

ParameterTypeDescription
source *stringAn http(s) URL, a local file path, or inline DXF text. A PDF is binary: pass it as a URL or a path, never inline.
spacestringWhich space to work on: "Model" (a PDF's page 1, a DXF's model space) or a page/layout name as listed in a describe reply's "spaces". Describe omits it for the whole drawing; render defaults to the fi…
widthintegerPNG width in pixels (default 1200)

describe_doc Describe a drawing of any supported format

Return a structured JSON summary of a drawing in any supported format (DXF or PDF), detected from its bytes rather than its name. Use this when you do not know which format you have; the reply names the format that was read. Covers the whole drawing by default, including every page of a multi-page PDF; pass `space` (a name from the reply's `spaces`) to scope it to one page or sheet.

ParameterTypeDescription
source *stringAn http(s) URL, a local file path, or inline DXF text. A PDF is binary: pass it as a URL or a path, never inline.
spacestringWhich space to work on: "Model" (a PDF's page 1, a DXF's model space) or a page/layout name as listed in a describe reply's "spaces". Describe omits it for the whole drawing; render defaults to the fi…

render_doc Render a drawing of any supported format

Render a drawing in any supported format (DXF or PDF) to a PNG you can look at, detected from its bytes rather than its name. Use this when you do not know which format you have. Renders the first page/sheet by default; pass `space` (a name from a describe reply's `spaces`) to render another one.

ParameterTypeDescription
source *stringAn http(s) URL, a local file path, or inline DXF text. A PDF is binary: pass it as a URL or a path, never inline.
spacestringWhich space to work on: "Model" (a PDF's page 1, a DXF's model space) or a page/layout name as listed in a describe reply's "spaces". Describe omits it for the whole drawing; render defaults to the fi…
widthintegerPNG width in pixels (default 1200)