add_field
Adds a new field to an entity type, with support for standard data types or lookup fields via lookupEntity and lookupField. Use it to extend table schemas safely.
Instructions
Add a field to an entity type. Use fieldType or specify lookupEntity/lookupField for lookups.
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": {
"tableName": "<tableName>",
"fieldName": "<fieldName>"
},
"name": "add_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fieldName | Yes | Field name (required). | |
| fieldType | No | Optional data type. One of: INTEGER, DOUBLE, BOOLEAN, STRING, DATETIME, DATE, TIME, TEXT, BIGINT | |
| tableName | Yes | Target table name (required). | |
| displayName | No | Display name (optional). Defaults to camelCaseToCaption(fieldName). | |
| lookupField | No | Lookup field name (optional). Defaults to lookup entity PK. | |
| lookupEntity | No | Lookup entity name for AUTOCOMPLETE fields (optional). |