create_view
Creates a new ArchiMate view (diagram) in the active model. Specify a name, optional viewpoint from supported types, and folder path to organize views.
Instructions
Create a new ArchiMate view (diagram) in the active model.
Views are containers for visual nodes and connections. Add nodes
with `add_node_to_view` and connections with
`add_connection_to_view` once both endpoint elements are visible.
Set a `viewpoint` so the view opens with the right Archi viewpoint
(e.g. `layered` for mixed-layer overviews, `capability` for
capability maps, `service_realization` for service views). Take the
value from `list_supported_types` (`data.viewpoints`) rather than
inferring it from the viewpoint's English name — a plausible
`business_process` is not accepted, `business_process_cooperation`
is.
Args:
name: View name. Must be a non-empty string.
view_id: Optional stable view ID. When omitted a UUID is
generated. Must be unique across the
*entire* active model — not just within this call, this
batch, or this concept type. An id already used by any
element, relationship, view, node or connection is
rejected. When generating ids across several batches,
namespace them (`bp-`, `ac-`, `tech-`) so batches cannot
collide.
folder_path: Optional folder path. The `Views` root is
normalized: `Views`, `/Views`, and `views` resolve to
`/Views`.
viewpoint: Optional viewpoint: any canonical Archi viewpoint id
(e.g. `layered`, `application_cooperation`) or pyArchimate
slug. Both catalogs are in `list_supported_types` under
`data.viewpoints`. Invalid values are rejected before the
view is created — nothing is left behind, so the same
`view_id` can be reused on the retry — and the error
carries both accepted catalogs in `error.details`.
Returns:
Success envelope with `data` shaped like a `ViewDetail`:
`{id, name, nodes: [], connections: []}`.
Errors:
`INVALID_VIEW_NAME` when `name` is missing or blank.
`ModelNotFoundError` if no model is active.
`ModelOperationError` for a duplicate `view_id`, an unknown
`viewpoint`, or an invalid folder path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| view_id | No | ||
| viewpoint | No | ||
| properties | No | ||
| description | No | ||
| folder_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||