batch_records
Run multiple PocketBase create, update, upsert, and delete operations in one request to reduce round trips and apply related record changes together.
Instructions
Perform multiple create/update/upsert/delete operations in one request.
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": {
"requests": "<requests>"
},
"name": "batch_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requests | Yes | List of batch operation dicts. Example: [ {"method": "POST", "url": "/api/collections/posts/records", "body": {"title": "New post"}}, {"method": "PATCH", "url": "/api/collections/posts/records/abc123", "body": {"title": "Updated"}}, {"method": "DELETE", "url": "/api/collections/posts/records/xyz789"} ] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | No |