sanity_publish
Publish a draft document by moving it from drafts to published status. Requires a write token for authorization.
Instructions
Publish a draft document (moves from drafts.* to published). 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": {
"id": "<id>"
},
"name": "sanity_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The draft document ID (with or without "drafts." prefix) |