sanity_unpublish
Unpublish a document by moving it to the drafts namespace. Requires a write token to execute.
Instructions
Unpublish a document (moves to drafts.*). 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_unpublish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The published document ID |