# agentCollection

```graphql
query AgentCollection($input: ProjectAgentsInput!) {
  agentCollection(input: $input) {
    data {
      avatarUrl
      id
      name
      description
      provider
      version
      capabilities
      defaultInputModes
      defaultOutputModes
      tools
      skills
      suggestions
      model
      url
      kind
      canRun
      sourceType
      installedAccess
      runtimeReadiness
      sourcePath
      editMode
    }
    diagnostics {
      kind
      sourceKind
      sourcePath
      sourceId
      code
      message
      details
    }
  }
}
```

List agents. Requires project.agents.read.

## Arguments

| Name                        | Type                | Required | Description |
| --------------------------- | ------------------- | -------- | ----------- |
| `input`                     | ProjectAgentsInput! | Yes      |             |
| `input.projectReference`    | String              |          |             |
| `input.sourceTargetKind`    | String              |          |             |
| `input.runtimeTargetKind`   | String              |          |             |
| `input.targetEnvironmentId` | ID                  |          |             |
| `input.targetBranchId`      | ID                  |          |             |

## Variables

```json
{
  "input": {}
}
```

## Responses

| Status | Description                                 |
| ------ | ------------------------------------------- |
| 200    | The AgentCardList! in data.agentCollection. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query AgentCollection($input: ProjectAgentsInput!) {\n  agentCollection(input: $input) {\n    data {\n      avatarUrl\n      id\n      name\n      description\n      provider\n      version\n      capabilities\n      defaultInputModes\n      defaultOutputModes\n      tools\n      skills\n      suggestions\n      model\n      url\n      kind\n      canRun\n      sourceType\n      installedAccess\n      runtimeReadiness\n      sourcePath\n      editMode\n    }\n    diagnostics {\n      kind\n      sourceKind\n      sourcePath\n      sourceId\n      code\n      message\n      details\n    }\n  }\n}",
  "variables": {
    "input": {}
  }
}'
```

## Example response

```json
{
  "data": {
    "agentCollection": {
      "data": [
        {
          "avatarUrl": "https://example.com",
          "id": "string",
          "name": "string",
          "description": "string",
          "provider": {},
          "version": "string",
          "capabilities": {},
          "defaultInputModes": [
            "string"
          ],
          "defaultOutputModes": [
            "string"
          ],
          "tools": [
            "string"
          ],
          "skills": [
            {}
          ],
          "suggestions": {},
          "model": "string",
          "url": "https://example.com",
          "kind": "string",
          "canRun": false,
          "sourceType": "string",
          "installedAccess": {},
          "runtimeReadiness": {},
          "sourcePath": "string",
          "editMode": "string"
        }
      ],
      "diagnostics": [
        {
          "kind": "string",
          "sourceKind": "string",
          "sourcePath": "string",
          "sourceId": "string",
          "code": "string",
          "message": "string",
          "details": {}
        }
      ]
    }
  }
}
```
