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.
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": {
"collection": "<collection>",
"record_id": "<record_id>"
},
"name": "get_record"
}
}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 |