# Install agents

Tool: `veryfront__install_agent_for_projects`

Install agent in projects. Requires project.agents.write.

## Arguments

| Name                          | Type                           | Required | Description                                                                                                                                                           |
| ----------------------------- | ------------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `agent_id`                    | string · min length 1          | Yes      | Catalog agent identifier.                                                                                                                                             |
| `relation`                    | string · default editor        |          | Relation of each agent access grant. The selection expands into one explicit grant per project; the agent is not copied. One of `owner`, `admin`, `editor`, `viewer`. |
| `selected_project_references` | array of string · min length 1 | Yes      | Projects (ID or slug) to install the agent in.                                                                                                                        |
| `project_reference`           | string · min length 1          |          | Project identifier or slug that scopes the tool call.                                                                                                                 |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__install_agent_for_projects",
    "arguments": {
      "agent_id": "string",
      "selected_project_references": [
        "string"
      ]
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"provider\":{\"organization\":\"string\",\"url\":\"string\"},\"version\":\"string\",\"capabilities\":{\"streaming\":false,\"push_notifications\":false,\"extensions\":[\"string\"]},\"default_input_modes\":[\"string\"],\"default_output_modes\":[\"string\"],\"tools\":[\"string\"],\"skills\":[{\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"tags\":[\"string\"],\"examples\":[\"string\"]}],\"suggestions\":[\"string\"],\"kind\":\"source_project_agent\",\"can_run\":false,\"source_type\":\"project\",\"installed_access\":{\"grant_id\":\"00000000-0000-0000-0000-000000000000\",\"relation\":\"owner\",\"service_account_id\":\"00000000-0000-0000-0000-000000000000\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"string\"},\"runtime_readiness\":{\"status\":\"ready\",\"reason\":\"string\",\"runtime_target_kind\":\"registered_push_service\",\"runtime_service_key\":\"string\"},\"source_path\":\"string\",\"edit_mode\":\"structured\",\"avatar_url\":\"string\",\"model\":\"string\",\"url\":\"string\"}],\"diagnostics\":[{\"kind\":\"source_file_diagnostic\",\"source_kind\":\"agent\",\"source_path\":\"string\",\"source_id\":\"string\",\"code\":\"parse_error\",\"message\":\"string\",\"details\":{}}]}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "string",
          "name": "string",
          "description": "string",
          "provider": {
            "organization": "string",
            "url": "string"
          },
          "version": "string",
          "capabilities": {
            "streaming": false,
            "push_notifications": false,
            "extensions": [
              "string"
            ]
          },
          "default_input_modes": [
            "string"
          ],
          "default_output_modes": [
            "string"
          ],
          "tools": [
            "string"
          ],
          "skills": [
            {
              "id": "string",
              "name": "string",
              "description": "string",
              "tags": [
                "string"
              ],
              "examples": [
                "string"
              ]
            }
          ],
          "suggestions": [
            "string"
          ],
          "kind": "source_project_agent",
          "can_run": false,
          "source_type": "project",
          "installed_access": {
            "grant_id": "00000000-0000-0000-0000-000000000000",
            "relation": "owner",
            "service_account_id": "00000000-0000-0000-0000-000000000000",
            "project_id": "00000000-0000-0000-0000-000000000000",
            "status": "string"
          },
          "runtime_readiness": {
            "status": "ready",
            "reason": "string",
            "runtime_target_kind": "registered_push_service",
            "runtime_service_key": "string"
          },
          "source_path": "string",
          "edit_mode": "structured",
          "avatar_url": "string",
          "model": "string",
          "url": "string"
        }
      ],
      "diagnostics": [
        {
          "kind": "source_file_diagnostic",
          "source_kind": "agent",
          "source_path": "string",
          "source_id": "string",
          "code": "parse_error",
          "message": "string",
          "details": {}
        }
      ]
    }
  }
}
```
