Set content status
fabrement-set-content-statusChange a page/post/custom record's status — everything reversible: "publish", "draft" (unpublish), "trash" (recoverable), "restore" (out of the trash, with the status and address it had before; find trashed records with list-content {status:"trash"}). Records are created and edited as drafts with save-content; deleting for good is delete-content. ASK THE USER FIRST, IN THE SAME TURN, for "publish" and for "trash", and wait for the answer — naming the record and what will happen to it. PUBLISH puts the page in front of everyone and in front of search engines at once, and a crawled URL is not un-crawled by reverting the status; TRASH takes a live page off the site, so every link and every menu entry pointing at it breaks while it sits there. Neither is yours to decide. "Finish this page" is not consent to publish it; preview {target:"content"} shows a draft at its real address without making it public, which is what verifying looks like. Rules: get-skill-doc {id:"content-contract"} — read it before the first call.
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": {
"contentId": "<contentId>"
},
"name": "fabrement-set-content-status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Default "publish". "draft" unpublishes; "trash" moves to the trash; "restore" takes it out. | |
| contentId | Yes | Content id (see list-content). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| title | No | ||
| status | Yes | Status AFTER the call, read back from WordPress. | |
| changed | No | False when it already had that status. | |
| postType | No | ||
| contentId | Yes |