Open a drawing in the interactive viewer
view_dxfOpen an interactive viewer the user can pan, zoom, and toggle layers in (renders in-chat on MCP Apps-capable hosts). Reads DXF and vector PDF; for a PDF it shows line work and text rather than a page facsimile, so images, shadings, and transparency are absent by design. Use this when the user wants to see or explore the drawing themselves; for your own analysis use a describe_* tool (facts) or a render_* tool (image). The viewer shows only the drawing from this call. Delivery is handled by the widget itself: small drawings are embedded in the result and larger URL-sourced drawings are fetched by the widget through its own tool call — never re-fetch or inline the file for the viewer's sake, and don't blind-retry if the user reports an empty viewer (the viewer posts its actual status back to the conversation context).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | A publicly reachable http(s) URL, or inline DXF text. A PDF is binary, so it must be a URL — inline PDF bytes are refused. (This is a hosted server — local file paths are not available; use the npx @aspicio/mcp local server for files on disk.) | |
| allow_file_open | No | Show open-file controls in the viewer (default false: viewer is locked to this drawing) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | Bounding-box size in drawing units, null when empty | |
| space | Yes | Which space this summary is scoped to, or null when it covers the whole drawing (bounds/size then describe spaces[0], the space render returns) | |
| texts | Yes | Unique TEXT/MTEXT strings, blocks included | |
| units | Yes | Drawing-unit label (e.g. "mm"), "" when unitless | |
| bounds | Yes | World-space extents, null for an empty drawing | |
| format | Yes | Which format was read ("dxf", "pdf") | |
| layers | Yes | ||
| spaces | Yes | Every space in the drawing (a PDF's pages, a DXF's model space and layouts), model space first. These do not sum to entityCount: a DXF sheet's viewports re-show model geometry, so an entity can be drawn in two spaces while existing once | |
| entityCount | Yes | ||
| entityTypes | Yes | Top-level entities per DXF type | |
| unsupported | Yes | Per-kind counts of what was skipped | |
| segmentCount | Yes |