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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collectionIdOrName": "<collectionIdOrName>"
},
"name": "pb_list_records"
}
}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 |