get_view
Get View · read tool
One View by id (c1, c2, c2/<system>, c3/<service>, deployment/<environment>, or a Saved View’s project:view-id) as nodes and edges. Neighbors outside the focus are collapsed to the highest level that still separates them; each edge carries the declared Relationships beneath it, and direction is the way the View draws (a Saved View’s own, else TB for a Deployment View, else LR). A Deployment View nests Deployment Targets (kind target), a System box per System inside each Target (id <system>@<target>) and the Deployments (kind deployment, id <service>@<target>, element the Service, target the Deployment Target), and returns its environment; a consumer Deployment connects to the provider’s Deployments under their deepest shared Target, else to all of them, and a related Service with no Deployment there is a node outside every Target. A Saved View with a Lens also returns the Lens, a mark ({hit, distance?, side?}, side being origin, upstream or downstream for an impact Lens) per node and lit per edge; the Lens never changes which nodes the View holds. A Dynamic View instead returns participants in drawing order and steps [{n, kind: call|return|event, from, to, relationship, interaction, via?, channel?, description, note?}]: an event is drawn publisher → subscriber while relationship is the stored subscriber → publisher subscription; a return replies over the sync relationship the other way. Steps that don’t resolve are left out (check reports them).
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | A View id, such as c1, c2/shop:checkout, c3/shop:cart or architecture:purchase. |
at |
string | A point in time to answer at: a tag, a commit sha or its first 4 or more characters, or a date (YYYY-MM-DD) or time (ISO 8601, UTC unless it gives a zone). On a checkout, any git ref works too. Leave out for the current Workspace. |
Output
Section titled “Output”| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
kind |
"c1" or "c2" or "c3" or "deployment" or "dynamic" |
yes | |
title |
string | yes | |
direction |
"TB" or "BT" or "LR" or "RL" |
||
environment |
string | ||
lens |
object | ||
nodes |
list of object | ||
nodes[].id |
string | yes | |
nodes[].kind |
"person" or "system" or "service" or "component" or "target" or "deployment" |
yes | |
nodes[].name |
string | yes | |
nodes[].element |
string | ||
nodes[].target |
string | ||
nodes[].instances |
number or object | Default: 1. |
|
nodes[].parent |
string or null | yes | |
nodes[].collapsed |
boolean | yes | |
nodes[].external |
boolean | yes | |
nodes[].mark |
object | ||
edges |
list of object | ||
edges[].from |
string | yes | |
edges[].to |
string | yes | |
edges[].relationships |
list of object | yes | |
edges[].lit |
boolean | ||
participants |
list of string | ||
steps |
list of object | ||
steps[].n |
number | yes | |
steps[].kind |
"call" or "return" or "event" |
yes | |
steps[].from |
string | yes | |
steps[].to |
string | yes | |
steps[].relationship |
object | yes | |
steps[].interaction |
"sync" or "async" |
yes | |
steps[].via |
string | ||
steps[].channel |
string | ||
steps[].description |
string | yes | |
steps[].note |
string |
When lens has impact and direction
| Field | Type | Required | Notes |
|---|---|---|---|
lens.impact |
string | yes | |
lens.direction |
"upstream" or "downstream" or "both" |
yes |
When lens has team
| Field | Type | Required | Notes |
|---|---|---|---|
lens.team |
string | yes |
When lens has path
| Field | Type | Required | Notes |
|---|---|---|---|
lens.path |
object | yes | |
lens.path.from |
string | yes | |
lens.path.to |
string | yes | |
lens.path.paths |
"shortest" or number |
Example
Section titled “Example”Called over the Kitchen sink example Workspace.
Arguments:
{ "id": "sink:orders-db-outage"}Result:
{ "id": "sink:orders-db-outage", "kind": "c2", "title": "What an Orders DB outage affects", "direction": "LR", "nodes": [ { "id": "sink:api", "kind": "service", "name": "API", "parent": null, "collapsed": true, "external": false, "mark": { "hit": true, "distance": 1, "side": "upstream" } }, { "id": "sink:mailer", "kind": "service", "name": "Mailer", "parent": null, "collapsed": false, "external": false, "mark": { "hit": true, "distance": 2, "side": "upstream" } }, { "id": "sink:orders-db", "kind": "service", "name": "Orders DB", "parent": null, "collapsed": false, "external": false, "mark": { "hit": true, "distance": 0, "side": "origin" } }, { "id": "sink:reports", "kind": "service", "name": "Reports", "parent": null, "collapsed": false, "external": false, "mark": { "hit": true, "distance": 1, "side": "upstream" } }, { "id": "sink:web", "kind": "service", "name": "Web", "parent": null, "collapsed": false, "external": false, "mark": { "hit": true, "distance": 2, "side": "upstream" } } ], "edges": [ { "from": "sink:api", "to": "sink:orders-db", "relationships": [ { "id": null, "from": "sink:orders", "to": "sink:orders-db", "description": "Stores orders in", "technology": "SQL", "interaction": "sync", "via": null, "channel": null, "tags": [], "source": { "file": "examples/kitchen-sink/archidocs/sink/model.yaml", "line": 49 } } ], "lit": true }, { "from": "sink:mailer", "to": "sink:api", "relationships": [ { "id": null, "from": "sink:mailer", "to": "sink:api", "description": "Emails a receipt for each order", "technology": null, "interaction": "async", "via": "sink:events", "channel": "orders.placed", "tags": [], "source": { "file": "examples/kitchen-sink/archidocs/sink/model.yaml", "line": 79 } } ], "lit": true }, { "from": "sink:reports", "to": "sink:orders-db", "relationships": [ { "id": null, "from": "sink:reports", "to": "sink:orders-db", "description": "Reads order history from", "technology": "SQL", "interaction": "sync", "via": null, "channel": null, "tags": [], "source": { "file": "examples/kitchen-sink/archidocs/sink/reporting.yaml", "line": 10 } } ], "lit": true }, { "from": "sink:web", "to": "sink:api", "relationships": [ { "id": null, "from": "sink:web", "to": "sink:api", "description": "Calls", "technology": "JSON/HTTPS", "interaction": "sync", "via": null, "channel": null, "tags": [], "source": { "file": "examples/kitchen-sink/archidocs/sink/model.yaml", "line": 28 } } ], "lit": true } ], "lens": { "impact": "sink:orders-db", "direction": "upstream" }}Errors
Section titled “Errors”A call that fails returns isError: true, with {code, message, suggestions?} as structuredContent. This tool returns:
invalid_inputwhen the arguments don’t fit the input above.not_foundwhen an id or name, or the point in history given asat, matches nothing, or a sha prefix starts more than one Revision, with the candidates.source_unavailablewhen the server can’t read the Workspace.history_unavailablewhen the Workspace has no history to read atat.
Error codes says what to do about each.
See also
Section titled “See also”Documents Archidocs v1.4.0, the latest release.