list_views
List Views · read tool
The Generated Views: c1 and c2 (the Landscapes), c2/<system> and c3/<service> (Services with Components); then the Saved Views (project:view-id), structural ones listed under their level and Dynamic Views under dynamic. With element, only the Views that show that Element as a node, and the Dynamic Views it takes part in (as a participant, or as the broker an event Step runs via).
| Field | Type | Required | Notes |
|---|---|---|---|
kind |
"c1" or "c2" or "c3" or "deployment" or "dynamic" |
||
element |
string | Only Views containing this Element (project:id). | |
limit |
integer | The most items to return; truncated says whether there were more. Default: 50. At least 1. At most 9007199254740991. |
|
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 |
|---|---|---|---|
total |
number | yes | |
truncated |
boolean | yes | |
views |
list of object | yes | |
views[].id |
string | yes | |
views[].kind |
"c1" or "c2" or "c3" or "deployment" or "dynamic" |
yes | |
views[].title |
string | yes |
Example
Section titled “Example”Called over the Kitchen sink example Workspace.
Arguments:
{ "element": "sink:orders-db"}Result:
{ "total": 7, "truncated": false, "views": [ { "id": "c2", "kind": "c2", "title": "C2 Landscape" }, { "id": "c2/sink:shop", "kind": "c2", "title": "Shop (C2)" }, { "id": "c3/sink:api", "kind": "c3", "title": "API (C3)" }, { "id": "deployment/prod", "kind": "deployment", "title": "Production (Deployment)" }, { "id": "sink:everything", "kind": "c3", "title": "Everything" }, { "id": "sink:orders-db-outage", "kind": "c2", "title": "What an Orders DB outage affects" }, { "id": "sink:place-order", "kind": "dynamic", "title": "Customer places an order" } ]}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.