wp_posts_publish
Publish an existing WordPress post by its ID, changing its status to published. Use this to make a draft or scheduled post live via the REST API.
Instructions
Publish an existing post by id (sets status to "publish"). Shortcut for wp_posts_update with status="publish". Requires publish tier.
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": {
"id": "<id>"
},
"name": "wp_posts_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |