create_field
Add a new field to a collection by specifying its type, interface, and constraints such as required or choices.
Instructions
Add a new field to a collection. Specify field type, interface, and constraints. Example: {collection: "articles", field: "status", type: "string", meta: {interface: "select-dropdown", options: {choices: [{text: "Draft", value: "draft"}, {text: "Published", value: "published"}]}, required: true}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name | |
| field | Yes | Field name | |
| type | Yes | Field type (string, integer, text, boolean, json, uuid, timestamp, etc.) | |
| meta | No | Field metadata | |
| schema | No | Database schema configuration |