sanity_create
Create a new document in Sanity CMS by providing the document type and data. Optionally specify a custom ID; otherwise Sanity generates one.
Instructions
Create a new document in Sanity CMS. Requires write token.
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": {
"_type": "<_type>",
"document": "<document>"
},
"name": "sanity_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _type | Yes | The document type (e.g., "post", "author") | |
| _id | No | Optional: Custom document ID. If not provided, Sanity generates one. | |
| document | Yes | The document data (all fields except _type and _id) |