Publish a Hashnode draft
hashnode_publish_draftPublish an existing Hashnode draft as a live blog post by providing its draft ID, returning post details such as URL and publication date.
Instructions
Publish an existing draft, making it a live blog post.
Args:
draft_id (string, required): Draft ID to publish (from hashnode_create_draft or hashnode_list_drafts)
response_format: 'markdown' or 'json'
Returns: post id, title, slug, url, publishedAt, tags
Examples:
Create draft → publish: hashnode_create_draft → hashnode_publish_draft
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": {
"draft_id": "<draft_id>"
},
"name": "hashnode_publish_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_id | Yes | Draft ID to publish | |
| response_format | No | Output format: 'markdown' (default) or 'json' | markdown |