update_record
Modify fields on an existing PocketBase record by collection and record ID. Provide only the key-value fields to change; optionally expand relations or limit returned fields.
Instructions
Update an existing record.
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>",
"body": "<body>"
},
"name": "update_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The fields to update as key-value pairs. Only include the fields you want to change (e.g. {"status": "published"}). | |
| expand | No | Comma-separated list of relations to expand in the response. | |
| fields | No | Comma-separated list of fields to return in the response. | |
| record_id | Yes | The record ID to update. | |
| collection | Yes | The collection name or ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| created | Yes | ||
| updated | Yes | ||
| collectionId | Yes | ||
| collectionName | Yes |