List agents

agentCollection(input: ProjectAgentsInput!): AgentCardList!

Requires project.agents.read.

Arguments

ArgumentTypeRequired
inputProjectAgentsInput!Yes

Input fields

input

ProjectAgentsInput

FieldTypeRequired
projectReferenceStringNo
sourceTargetKindStringNo
runtimeTargetKindStringNo
targetEnvironmentIdIDNo
targetBranchIdIDNo

Response

Returns AgentCardList!. Open the type for its fields and nested types.

FieldTypeDescription
data[ProjectAgentCard!]!
diagnostics[ProjectSourceFileDiagnostic!]!Agent source files that could not be read as an agent. Every discovery error is listed here.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
query AgentCollection($input: ProjectAgentsInput!) {  agentCollection(input: $input) {    data {      id      name      avatarUrl      canRun      capabilities    }    diagnostics {      code      details      kind      message      sourceId    }  }}
variables.json
{  "input": {    "projectReference": "00000000-0000-4000-8000-000000000001"  }}