# agentCapabilities

```graphql
query AgentCapabilities($input: ProjectAgentInput!) {
  agentCapabilities(input: $input) {
    agent
    resolvedCapabilities
  }
}
```

Get agent capabilities. Requires project.agents.read.

## Arguments

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

## Variables

```json
{
  "input": {
    "agentId": "string"
  }
}
```

## Responses

| Status | Description                                              |
| ------ | -------------------------------------------------------- |
| 200    | The ProjectAgentCapabilities! in data.agentCapabilities. |

## 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 AgentCapabilities($input: ProjectAgentInput!) {\n  agentCapabilities(input: $input) {\n    agent\n    resolvedCapabilities\n  }\n}",
  "variables": {
    "input": {
      "agentId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "agentCapabilities": {
      "agent": {},
      "resolvedCapabilities": {}
    }
  }
}
```
