build_default_outputs
Generate a complete set of deliverables for a network diagram master: combined multi-layer HTML viewer, device table, and AI context file in a single call.
Instructions
Generate the default deliverable bundle for a .nsm master.
Runs the following three steps in a single call:
1. export combined_diagram --type all_areas
Produces FOUR artifacts in one shot:
- [L1_DIAGRAM]AllAreasTag_<base>.svg (per-layer side effect)
- [L2_DIAGRAM]AllAreas_<base>.svg (per-layer side effect)
- [L3_DIAGRAM]AllAreas_<base>.svg (per-layer side effect)
- [L1L2L3_DIAGRAM]AllAreas_<base>.html (combined tabbed HTML
viewer; primary deliverable)
The combined HTML embeds all three layer SVGs in a self-contained
page with three switchable tabs (L1 / L2 / L3) styled to match
the Device Table viewer. Per-layer SVGs are reused if already
present in the workspace; missing ones are generated as needed.
2. export_device_table_html
(file: [DEVICE_TABLE]<base>.html)
3. (re-)generate AI Context file
(file: [AI_Context]<base>.txt)
Each step is judged independently; if one step fails the remaining
steps still execute and the per-step status is reflected in the
returned summary. The summary lists six rows -- one per individual
artifact -- so callers can see which layers (if any) failed even when
the combined HTML succeeded.
Per-area combined HTMLs (e.g. ``[L1L2L3_DIAGRAM]<area>_<base>.html``)
are NOT generated by default. If you need one, request it explicitly
via ``run_commands(["export combined_diagram --type per_area --area
<name>"])`` after this tool returns.
Call this ONCE as the final step after constructing or substantially
updating a network so that diagrams, the Device Table preview, and the
AI Context bundle are all refreshed in lock-step. Prefer this tool
over individually calling export_diagram / export_device_table_html /
get_ai_context for routine finalization.
Args:
master: Master filename inside the working directory
(e.g. '[MASTER]office.nsm') or an absolute path inside
the active workspace.
Returns:
A multi-line summary listing each artifact's status, the generated
file path, and a trailing 'Summary: N/6 succeeded.' line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| master | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |