# knowledgeCatalog

```graphql
query KnowledgeCatalog($projectReference: ID!) {
  knowledgeCatalog(projectReference: $projectReference) {
    data {
      fileId
      fileVersionId
      path
      title
      type
      tags
      reserved
      reservedKind
      malformedReason
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    total
    returned
  }
}
```

List knowledge files.

## Arguments

| Name                   | Type                            | Required | Description                                                                                                                                                                                                                                                                                                                                                                                               |
| ---------------------- | ------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectReference`     | ID!                             | Yes      | Project whose knowledge is selected. Ordinary callers require project.knowledge.read. A run-bound MCP service credential instead must match the persisted run's project and agent plus its actor or runtime transport binding; its effective sealed authority must grant the invoked tool and a knowledge selector. On project-scoped MCP endpoints, the scoped project supplies this value when omitted. |
| `input`                | KnowledgeCatalogInput           |          |                                                                                                                                                                                                                                                                                                                                                                                                           |
| `input.lookupTarget`   | KnowledgeLookupTargetInput      |          | Source to list; omit for the main preview branch.                                                                                                                                                                                                                                                                                                                                                         |
| `input.callerSelector` | JSON                            |          | Caller-selected document scope. Source membership, persisted run knowledge policy and this selector are intersected before counting or paging. Results include visible knowledge Markdown files with title, type, tags and link counts. Accepts a boolean, a path pattern, a list of patterns, or a {pattern: boolean} map. Patterns are relative; at most 1024 entries.                                  |
| `input.filters`        | KnowledgeFiltersInput           |          |                                                                                                                                                                                                                                                                                                                                                                                                           |
| `input.pagination`     | KnowledgeCatalogPaginationInput |          |                                                                                                                                                                                                                                                                                                                                                                                                           |

## Variables

```json
{
  "projectReference": "string"
}
```

## Responses

| Status | Description                                     |
| ------ | ----------------------------------------------- |
| 200    | The KnowledgeCatalog! in data.knowledgeCatalog. |

## 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 KnowledgeCatalog($projectReference: ID!) {\n  knowledgeCatalog(projectReference: $projectReference) {\n    data {\n      fileId\n      fileVersionId\n      path\n      title\n      type\n      tags\n      reserved\n      reservedKind\n      malformedReason\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n    total\n    returned\n  }\n}",
  "variables": {
    "projectReference": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "knowledgeCatalog": {
      "data": [
        {
          "fileId": "string",
          "fileVersionId": "string",
          "path": "string",
          "title": "string",
          "type": "string",
          "tags": [
            "string"
          ],
          "reserved": false,
          "reservedKind": "string",
          "malformedReason": "string"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      },
      "total": 0,
      "returned": 0
    }
  }
}
```
