pb_list_records
Retrieve paginated records from a collection with support for filters, sorting, and expanded relations.
Instructions
Retrieve a paginated list of records from a collection with optional filtering, sorting, and relations expansion
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | The page number to fetch (1-indexed) | |
| sort | No | PocketBase sort expression (e.g. '-created,id') | |
| expand | No | Comma-separated relations to expand (e.g. 'user,category') | |
| filter | No | PocketBase filter expression (e.g. 'status = "active" && created > "2022-01-01"') | |
| perPage | No | Number of records per page | |
| collectionIdOrName | Yes | The name or ID of the collection |