# accessibleAgents

```graphql
query AccessibleAgents {
  accessibleAgents {
    data {
      id
      agentId
      name
      description
      avatarUrl
      kind
      sourceType
      canRun
      provider
      version
      capabilities
      defaultInputModes
      defaultOutputModes
      tools
      skills
      suggestions
      runtimeReadiness
      model
      url
      updatedAt
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List agents across projects.

## Arguments

| Name                     | Type                     | Required | Description                                                                                                                  |
| ------------------------ | ------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `input`                  | AgentsInput              |          |                                                                                                                              |
| `input.accountId`        | ID                       |          |                                                                                                                              |
| `input.cursor`           | String                   |          |                                                                                                                              |
| `input.limit`            | Int                      |          |                                                                                                                              |
| `input.search`           | String                   |          |                                                                                                                              |
| `input.projectReference` | String                   |          |                                                                                                                              |
| `input.access`           | String                   |          |                                                                                                                              |
| `input.kind`             | String                   |          |                                                                                                                              |
| `input.runtimeStatus`    | String                   |          |                                                                                                                              |
| `input.label`            | \[String!]               |          | Label filters as key or key=value, comma-separated. All filters must match.                                                  |
| `input.sortBy`           | AccessibleAgentSortBy    |          | Field to sort by. Ties break by agent row ID ascending. Default `project_name`. One of `name`, `project_name`, `updated_at`. |
| `input.sortOrder`        | AccessibleAgentSortOrder |          | Sort direction. Defaults to asc, the order the directory has always used. Default `asc`. One of `asc`, `desc`.               |

## Responses

| Status | Description                                    |
| ------ | ---------------------------------------------- |
| 200    | The AgentConnection! in data.accessibleAgents. |

## 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 AccessibleAgents {\n  accessibleAgents {\n    data {\n      id\n      agentId\n      name\n      description\n      avatarUrl\n      kind\n      sourceType\n      canRun\n      provider\n      version\n      capabilities\n      defaultInputModes\n      defaultOutputModes\n      tools\n      skills\n      suggestions\n      runtimeReadiness\n      model\n      url\n      updatedAt\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "accessibleAgents": {
      "data": [
        {
          "id": "string",
          "agentId": "string",
          "name": "string",
          "description": "string",
          "avatarUrl": "https://example.com",
          "kind": "string",
          "sourceType": "string",
          "canRun": false,
          "provider": {},
          "version": "string",
          "capabilities": {},
          "defaultInputModes": [
            "string"
          ],
          "defaultOutputModes": [
            "string"
          ],
          "tools": [
            "string"
          ],
          "skills": [
            {}
          ],
          "suggestions": {},
          "runtimeReadiness": {},
          "model": "string",
          "url": "https://example.com",
          "updatedAt": "string"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
