createItem
Add a new item to a specified collection in Directus CMS using the Model Context Protocol, enabling efficient content management through a simple API request.
Instructions
Create a new item in a collection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
data | Yes | Item data | |
token | No | Authentication token (default from config) | |
url | No | Directus API URL (default from config) |
Input Schema (JSON Schema)
{
"properties": {
"collection": {
"description": "Collection name",
"type": "string"
},
"data": {
"description": "Item data",
"type": "object"
},
"token": {
"description": "Authentication token (default from config)",
"type": "string"
},
"url": {
"description": "Directus API URL (default from config)",
"type": "string"
}
},
"required": [
"collection",
"data"
],
"type": "object"
}