Skip to content

list_teams

List Teams · read tool

Every Team defined in the Workspace, with how many Elements each owns.

Field Type Required Notes
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.
Field Type Required Notes
total number yes
truncated boolean yes
teams list of object yes
teams[].id string yes
teams[].name string yes
teams[].description string or null yes
teams[].links list of object yes
teams[].elements number yes

Called over the Kitchen sink example Workspace.

Arguments:

{}

Result:

{
"total": 3,
"truncated": false,
"teams": [
{
"id": "core",
"name": "Core",
"description": null,
"links": [],
"elements": 6
},
{
"id": "data",
"name": "Data",
"description": null,
"links": [],
"elements": 4
},
{
"id": "edge",
"name": "Edge",
"description": null,
"links": [],
"elements": 3
}
]
}

A call that fails returns isError: true, with {code, message, suggestions?} as structuredContent. This tool returns:

  • invalid_input when the arguments don’t fit the input above.
  • not_found when an id or name, or the point in history given as at, matches nothing, or a sha prefix starts more than one Revision, with the candidates.
  • source_unavailable when the server can’t read the Workspace.
  • history_unavailable when the Workspace has no history to read at at.

Error codes says what to do about each.

Documents Archidocs v1.4.0, the latest release.