get_record
Retrieve a single record by ID from a PocketBase collection, with optional field selection and relation expansion for targeted data access.
Instructions
Get a single record by ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expand | No | Comma-separated list of relations to expand. | |
| fields | No | Comma-separated list of fields to return. | |
| record_id | Yes | The record ID. | |
| collection | Yes | The collection name or ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| created | Yes | ||
| updated | Yes | ||
| collectionId | Yes | ||
| collectionName | Yes |