render_view_to_svg_file
Generate an SVG file from a view so it can be seen without opening Archi, for layout checks or document inclusion.
Instructions
Render one view to an SVG file so a human can look at the diagram.
Use this when someone wants to *see* a view without opening Archi —
to check that a layout reads well, or to drop a picture into a
document or chat. Lay the view out first with `auto_layout_view` if
the geometry needs work: rendering never moves anything.
SVG is a rendering, NOT a third model format. It cannot be imported
back into Archi and it is not a substitute for
`export_model_to_file` (`archi` = Archi native `.archimate`,
`archimate` = Open Group exchange XML). Use those to persist a
model; use this to look at one view.
The markup is written to disk and never returned: an 11-element view
is already ~3.2k tokens of SVG text, and reading it back would not
tell you anything you cannot get from `summarize_view` or
`build_quality_report`. Hand the returned path to the user.
Args:
view_id: ID of the view to render.
path: Output path on the MCP server's filesystem (`.svg`
conventionally). `~` is expanded, relative paths resolve
against the server's CWD, and parent directories are
created if missing.
Returns:
Success envelope with `data.path`, `data.view_id`,
`data.view_name`, `data.model_name`, `data.bytes_written`,
`data.node_count`, `data.connection_count`, and the rendered
canvas size in `data.width` / `data.height`. Never the markup.
Errors:
`ModelNotFoundError` if no model is active.
`ViewNotFoundError` when `view_id` is unknown.
`ModelOperationError` for a blank path or a write failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| view_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||