# agent

```graphql
query Agent($input: ProjectAgentInput!) {
  agent(input: $input) {
    avatarUrl
    id
    name
    description
    provider
    version
    capabilities
    defaultInputModes
    defaultOutputModes
    tools
    skills
    suggestions
    model
    url
    kind
    canRun
    sourceType
    installedAccess
    runtimeReadiness
    sourcePath
    editMode
  }
}
```

Get agent card. 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 ProjectAgentCard! in data.agent. |

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

## Example response

```json
{
  "data": {
    "agent": {
      "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"
    }
  }
}
```
