create_directory_field
Create a new field in a directory collection.
Args: project_id: The project ID. collection_id: The collection ID. field_type: One of: text, richtext, image, link, datetime, switch, option, reference, map, html, multiimage, video. label: Display label for the field. field_id: Custom field ID (auto-generated if omitted).
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": {
"project_id": "<project_id>",
"collection_id": "<collection_id>",
"field_type": "<field_type>",
"label": "<label>"
},
"name": "create_directory_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| field_id | No | ||
| field_type | Yes | ||
| project_id | Yes | ||
| collection_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |