wp_post_update
Modify existing WordPress posts by updating titles, content, or status using WP-CLI commands for content management.
Instructions
Update an existing post
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_post_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Post ID | |
| post_title | No | New title | |
| post_content | No | New content | |
| post_status | No | New status: draft, publish, pending, private |