show_drawing_viewer
Generate and launch an interactive HTML5 CAD drawing viewer in the browser for panning, zooming, and clicking rooms or layers, saved as a standalone HTML file.
Instructions
Generate and launch an interactive HTML5 CAD Canvas viewer in the web browser.
Behavior:
Mutation: Strictly read-only for CAD geometry; does not alter drawing database or active viewport.
Persistence: Saves a standalone HTML viewer file to the configured output directory.
Side Effects: Writes a self-contained HTML file to local disk. If open_browser is True, spawns an external process to open the system default web browser.
Usage Guidelines:
When to Use: Call when a human user requests interactive visual exploration, panning/zooming, or clicking on rooms/layers in a graphical UI.
Sibling Routing / Alternatives:
For programmatic spatial queries (bounding box, point raycasting, snap points, ASCII map), use
inspect_drawing.For exporting static documents or publication files (vector PDF, BC3, Excel), use
export_data.For controlling viewport zoom/camera inside the active CAD software window, use
manage_view.
Parameters:
filename: Output HTML file name or relative path (default: 'visor_cad.html').
open_browser: Whether to automatically launch default web browser (default: True).
Returns: JSON string with status, absolute HTML file path, entity count, and browser launch result.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "show_drawing_viewer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | visor_cad.html | |
| open_browser | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |