contentrain_content_status
Change content entry status to publish, unpublish, archive, or set draft/review states. Publishing validates targeted entries first and commits changes through the project's review or auto-merge workflow.
Instructions
Change the status of content entries — this is how an entry is published, unpublished or archived. Address records the way their meta is laid out: COLLECTION — "entry_ids"; DOCUMENT — "slugs"; SINGLETON and DICTIONARY — neither (one record per locale). i18n models change every supported locale unless "locale" is given. Setting status "published" validates the targeted entries first; if they have errors, nothing is committed. Records already at the requested status are reported as unchanged and not rewritten. contentrain_content_list shows each entry's current status under "meta". Changes are committed to git and follow the project's review or auto-merge workflow — do NOT manually edit .contentrain/meta files.
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": {
"model": "<model>",
"status": "<status>"
},
"name": "contentrain_content_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID | |
| slugs | No | Document slugs (document models only) — a document is addressed by slug, the same identity contentrain_content_save uses | |
| locale | No | Scope the change to one locale (i18n models only; defaults to every supported locale) | |
| status | Yes | New status | |
| entry_ids | No | Entry IDs (collection models only) |