publish_entry
Makes a Strapi entry live on the website after draft creation or updates; provide document_id for collection types.
Instructions
Publish an entry to make it live on the website. Content in Strapi is draft by default after creation or update. Call this after creating or updating content when the user wants changes to appear on the live site. For collection types, provide the document_id.
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": {
"content_type": "<content_type>"
},
"name": "publish_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Locale code | |
| document_id | No | Document ID (required for collection types) | |
| content_type | Yes | Content type UID |