> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Install agents

> Install agent in projects.

`installAgentForProjects(input: InstallProjectAgentForSelectedProjectsInput!): [ProjectAgentCard!]!`

Requires project.agents.write.

## Arguments

| Argument | Type | Required |
| - | - | - |
| `input` | [`InstallProjectAgentForSelectedProjectsInput!`](https://veryfront.com/docs/cloud/graphql/types/installprojectagentforselectedprojectsinput) | Yes |

## Input fields

### input

[`InstallProjectAgentForSelectedProjectsInput`](https://veryfront.com/docs/cloud/graphql/types/installprojectagentforselectedprojectsinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `selectedProjectReferences` | [`[String!]!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | |
| `agentId` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | |
| `relation` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Relation of each agent access grant. The selection expands into one explicit grant per project; the agent is not copied. |

## Response

Returns [`[ProjectAgentCard!]!`](https://veryfront.com/docs/cloud/graphql/types/projectagentcard). Open the type for its fields and nested types.

| Field | Type |
| - | - |
| `avatarUrl` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) |
| `id` | [`ID!`](https://veryfront.com/docs/cloud/graphql/types/id) |
| `name` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) |
| `description` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) |
| `provider` | [`JSON!`](https://veryfront.com/docs/cloud/graphql/types/json) |
| `version` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) |
| `capabilities` | [`JSON!`](https://veryfront.com/docs/cloud/graphql/types/json) |
| `defaultInputModes` | [`[String!]!`](https://veryfront.com/docs/cloud/graphql/types/string) |

[All fields of `ProjectAgentCard`](https://veryfront.com/docs/cloud/graphql/types/projectagentcard).

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
mutation InstallAgentForProjects($input: InstallProjectAgentForSelectedProjectsInput!) {
  installAgentForProjects(input: $input) {
    id
    name
    avatarUrl
    canRun
    capabilities
  }
}
```

```json title="variables.json" theme={null}
{
  "input": {
    "selectedProjectReferences": [],
    "agentId": "example"
  }
}
```

<details>
  <summary>Try this mutation</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Mutation

  Variables (JSON)
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.