List retrieval documents. Requires project.knowledge.read.
Arguments
projectReferenceID!requiredProject ID or slug. A project you cannot read is not_found. The MCP tool requires a signed-in user (a user session or user API key); service and agent-run credentials without a user are unauthenticated.
limitIntRecords per page, 1 to 100; default 20.
cursorStringThe previous page's pageInfo.endCursor.
Responses
query RetrievalDocuments($projectReference: ID!) { retrievalDocuments(projectReference: $projectReference) { data { id revision title source type metadata createdAt updatedAt } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } }}{ "data": { "retrievalDocuments": { "data": [ { "id": "string", "revision": "string", "title": "string", "source": "string", "type": "string", "metadata": {}, "createdAt": "2026-01-01T00:00:00Z", "updatedAt": "2026-01-01T00:00:00Z" } ], "pageInfo": { "hasNextPage": false, "hasPreviousPage": false, "startCursor": "string", "endCursor": "string" } } }}The RetrievalDocumentList! in data.retrievalDocuments.