create_directory_collection
Create a new directory collection.
Args: project_id: The project ID. name: Collection display name. slug: URL-safe slug (lowercase, hyphens, underscores only). fields: JSON array of field objects. Each field needs: type (text|richtext|image|link|datetime|switch|option|reference|map|html|multiimage|video), label. Optional: id.
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>",
"name": "<name>",
"slug": "<slug>"
},
"name": "create_directory_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| slug | Yes | ||
| fields | No | [] | |
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |