list_owned
List owned · read tool
The Elements and Deployment Targets a Team owns, grouped by kind, each with counts of the other Teams upstream (depending on it) and downstream (it depends on). An Element is listed under its own Owner, whoever owns its parent.
| Field | Type | Required | Notes |
|---|---|---|---|
team |
string | yes | A Team id. |
kind |
"person" or "system" or "service" or "component" or "target" |
||
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 |
|---|---|---|---|
team |
string | yes | |
kind |
"person" or "system" or "service" or "component" or "target" or null |
yes | |
total |
number | yes | |
truncated |
boolean | yes | |
groups |
list of object | yes | |
groups[].kind |
"person" or "system" or "service" or "component" or "target" |
yes | |
groups[].total |
number | yes | |
groups[].items |
list of object | yes |
Example
Section titled “Example”Called over the Kitchen sink example Workspace.
Arguments:
{ "team": "data"}Result:
{ "team": "data", "kind": null, "total": 4, "groups": [ { "kind": "service", "total": 4, "items": [ { "id": "sink:events", "name": "Events", "parent": "sink:shop", "upstreamTeams": 1, "downstreamTeams": 0 }, { "id": "sink:orders-db", "name": "Orders DB", "parent": "sink:shop", "upstreamTeams": 1, "downstreamTeams": 0 }, { "id": "sink:reports", "name": "Reports", "parent": "sink:shop", "upstreamTeams": 0, "downstreamTeams": 0 }, { "id": "sink:search", "name": "Search", "parent": null, "upstreamTeams": 1, "downstreamTeams": 0 } ] } ], "truncated": false}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 the beta branch at cd98671, ahead of the latest release, v1.4.0.