migrate_collection
Modify collection structure by adding, removing, or updating fields, including data transformations and access rules for PocketBase databases.
Instructions
Add, remove, or modify fields from a collection
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>",
"fields": "<fields>"
},
"name": "migrate_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name | |
| createRule | No | Optional new rule for creating records | |
| dataTransforms | No | Field transformation mappings for converting old field values to new ones | |
| deleteRule | No | Optional new rule for deleting records | |
| fields | Yes | New collection fields configuration | |
| listRule | No | Optional new rule for listing records | |
| name | No | Optional new collection name if you want to rename the collection | |
| updateRule | No | Optional new rule for updating records | |
| viewRule | No | Optional new rule for viewing records |