Create custom field
create_custom_fieldDefine a new custom field for document metadata. Choose its data type carefully, as it cannot be changed after creation.
Instructions
Define a new custom field. The data type cannot be changed afterwards, so pick it deliberately.
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": {
"name": "<name>",
"data_type": "<data_type>"
},
"name": "create_custom_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| data_type | Yes | Field type. 'select' requires extra_data.select_options; 'monetary' stores a currency-prefixed amount; 'documentlink' stores references to other document IDs. | |
| extra_data | No | Type-specific configuration. For 'select': {"select_options": [{"label": "Open"}, {"label": "Paid"}]}. For 'monetary': {"default_currency": "EUR"}. |