add_field_migration
Create a migration file to add a new field to an existing PocketBase collection. Specify the collection identifier and field definition with name and type to generate the migration.
Instructions
Create a migration file for adding a field to an existing 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": {
"collectionNameOrId": "<collectionNameOrId>",
"fieldDefinition": "<fieldDefinition>"
},
"name": "add_field_migration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collectionNameOrId | Yes | The name or ID of the collection to update. | |
| fieldDefinition | Yes | The schema definition for the new field. | |
| description | No | Optional description override for the filename. |