Create Item
Follow the item-operations skill (${CLAUDE_PLUGIN_ROOT}/skills/item-operations/SKILL.md) for the query syntax, filters and batch rules; read it before the first call.
Arguments
collection(required) — Collection namefield=valuepairs — Field values for the new item
Process
- Parse collection name and field=value pairs from input
- Call
schematool withkeys: ["<collection>"]to check required fields - Warn if any required fields are missing from the input
- Build data object from field=value pairs
- Call
itemstool with:
Remember: data is ALWAYS an array{ "action": "create", "collection": "<collection>", "data": [{ "field1": "value1", "field2": "value2" }] } - Display the created item with its ID
- Suggest viewing the item or creating more
Example
Input: posts title="My New Post" status=draft content="Post content here"
{
"action": "create",
"collection": "posts",
"data": [{
"title": "My New Post",
"status": "draft",
"content": "Post content here"
}]
}