List agents across projects

accessibleAgents(input: AgentsInput): AgentConnection!

Arguments

ArgumentTypeRequired
inputAgentsInputNo

Input fields

input

AgentsInput

FieldTypeRequiredDescription
accountIdIDNo
cursorStringNo
limitIntNo
searchStringNo
projectReferenceStringNo
accessStringNo
kindStringNo
runtimeStatusStringNo
label[String!]NoLabel filters as key or key=value, comma-separated. All filters must match.
sortByAccessibleAgentSortByNoField to sort by. Ties break by agent row ID ascending. Default: "project_name".
sortOrderAccessibleAgentSortOrderNoSort direction. Defaults to asc, the order the directory has always used. Default: "asc".

Response

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

FieldTypeDescription
data[AccessibleAgent!]!
pageInfoPageInfo!Pagination for the agent list. pageInfo.next: Opaque cursor to continue matching rows or remaining scan work. Follow it even when this page has no agents; null means no continuation remains.

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

Example

query.graphql
query AccessibleAgents($input: AgentsInput) {  accessibleAgents(input: $input) {    data {      id      agentId      name      updatedAt      avatarUrl    }    pageInfo {      hasNextPage      endCursor      hasPreviousPage      startCursor    }  }}
variables.json
{}