connect_visible_relationships
Add visual connections for every relationship whose source and target nodes are visible in the view. Skips existing connections and optionally rolls back on error.
Instructions
Add visual connections for every relationship whose endpoints are visible.
Iterates over every relationship in the active model and, when both
its source and target elements are already visible nodes in the
view, adds the missing visual connection. Existing connections are
skipped.
Args:
view_id: ID of the target view.
detail: `summary` (default) or `full`. Every relationship that
is not drawable in this view counts as a skip, so on a
multi-view model the skip list is close to the whole
relationship set and every entry is expected. `full` adds
`data.skipped_relationship_ids`.
rollback_on_error: When true (default), restore the previous
view state if any connection fails.
Returns:
Success envelope with `data.connection_ids` (newly added),
`data.added_count`, `data.skipped_count`, and `data.detail`.
Under `full`, also `data.skipped_relationship_ids`.
Errors:
`ModelOperationError` when `view_id` is unknown, or for an
unknown `detail` level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | summary | |
| view_id | Yes | ||
| rollback_on_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||