List Documents
list_docsLists documents in an AFFiNE workspace with pagination and a bounded metadata fallback when GraphQL document access is denied. Use it to browse workspace docs and identify trashed items.
Instructions
List documents in a workspace (GraphQL), falling back to bounded workspace metadata when GraphQL document access is denied. Each doc includes an inTrash flag; fallback summary, public, and defaultRole values are null. GraphQL and fallback cursors are not interchangeable; restart pagination without after if a cursor is rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Cursor from pageInfo.endCursor for fetching the next page. | |
| first | No | Maximum number of items to return from the AFFiNE pagination connection (1-200). | |
| offset | No | Zero-based offset used by AFFiNE pagination (maximum 1,000,000). Do not combine with after unless the AFFiNE API requires it. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| edges | No | ||
| error | No | ||
| details | No | ||
| pageInfo | No | ||
| causeCode | No | ||
| retryable | No | ||
| totalCount | No | ||
| recoveryGuidance | No |