List Documents
list_docsRetrieve all documents in an AFFiNE workspace, including deleted items flagged in trash. Pagination supported with cursor or offset.
Instructions
List documents in a workspace (GraphQL). Each doc includes an inTrash flag.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_docs"
}
}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. | |
| offset | No | Zero-based offset used by AFFiNE pagination. Do not combine with after unless the AFFiNE API requires it. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |