publish_entry
Publish draft content entries to make them publicly visible. Use with list_entries to find unpublished entries.
Instructions
Publish a draft content entry to make it publicly visible via the Strapi API. On Strapi v5, uses the dedicated publish action endpoint; on v4, sets the publishedAt timestamp. Use list_entries with status='draft' to find unpublished entries that need publishing.
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>",
"entry_id": "<entry_id>"
},
"name": "publish_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Locale of the entry to publish (e.g., 'en', 'fr'). Only needed for i18n-enabled types. | |
| entry_id | Yes | Numeric ID of the entry to publish | |
| content_type | Yes | Plural API ID of the content type (e.g., 'articles', 'products') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |