# agentToolReferences

```graphql
query AgentToolReferences($input: ProjectAgentToolReferencesInput!) {
  agentToolReferences(input: $input) {
    data {
      name
      legacyName
      description
      source
      attachVia
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

Returns compact schema-free metadata; use exact returned names in tool\_ids, never provider\_tool\_ids. Requires project.agents.write.

## Arguments

| Name                     | Type                             | Required | Description |
| ------------------------ | -------------------------------- | -------- | ----------- |
| `input`                  | ProjectAgentToolReferencesInput! | Yes      |             |
| `input.projectReference` | String                           |          |             |
| `input.sourceTargetKind` | String                           |          |             |
| `input.targetBranchId`   | ID                               |          |             |
| `input.query`            | String                           |          |             |
| `input.names`            | \[String!]                       |          |             |
| `input.cursor`           | String                           |          |             |
| `input.limit`            | Int                              |          |             |

## Variables

```json
{
  "input": {}
}
```

## Responses

| Status | Description                                                      |
| ------ | ---------------------------------------------------------------- |
| 200    | The AgentToolReferenceSearchResult! in data.agentToolReferences. |

## 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 AgentToolReferences($input: ProjectAgentToolReferencesInput!) {\n  agentToolReferences(input: $input) {\n    data {\n      name\n      legacyName\n      description\n      source\n      attachVia\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}",
  "variables": {
    "input": {}
  }
}'
```

## Example response

```json
{
  "data": {
    "agentToolReferences": {
      "data": [
        {
          "name": "string",
          "legacyName": "string",
          "description": "string",
          "source": "string",
          "attachVia": "string"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
