Publish, schedule, or unpublish an item
cms_items_setPublishedUse exactly one publication action: published: true publishes immediately and sets publishedAt to now; a future publishAt schedules a draft for automatic publication; published: false unpublishes an item or cancels its schedule. A published item must be unpublished before it can be scheduled because CMS items do not have revision snapshots. Published websites read only items with an actual publishedAt, so immediate and scheduled promotion become visible without a site republish. Repeating the same action is idempotent.
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": {
"itemId": "<itemId>"
},
"name": "cms_items_setPublished"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | ||
| publishAt | No | Future absolute timestamp for scheduling. Omit `published`; scheduled items remain hidden until the promotion job runs. | |
| published | No | `true` publishes immediately; `false` unpublishes or cancels a schedule. Use `publishAt` instead to schedule publication. |