update_field
Modify an existing Directus field's metadata or database schema, such as interface, validation, type, required, unique, or default value, and return the updated definition.
Instructions
Changes an existing field, either its Directus metadata (interface, note, validation, options) or its database schema (type, required, unique, default_value). Metadata changes are safe; a type change rewrites the column and can fail or lose precision on existing data, and turning on required or unique fails on rows that already violate it. Idempotent: the same body applied twice leaves the same result. Use create_field to add a field, delete_field to remove one, and update_field with a hidden interface to retire a field without destroying data. Returns the updated field definition.
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>",
"field": "<field>"
},
"name": "update_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Field note | |
| type | No | Field type | |
| field | Yes | Field name | |
| unique | No | Is field unique | |
| options | No | Interface options | |
| required | No | Is field required | |
| interface | No | Field interface | |
| collection | Yes | Collection name | |
| validation | No | Validation rules | |
| default_value | No | Default value |