wp_update_post
Update an existing WordPress post by changing only the fields you specify, such as title, content, status, categories, tags, or featured media. Set a future date with publish status to schedule it.
Instructions
Update an existing post (only the given fields change)
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": {
"site": "<site>",
"id": "<id>"
},
"name": "wp_update_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Post ID | |
| date | No | Publish date in the site timezone (ISO8601); a future date with status publish schedules it | |
| meta | No | Registered meta fields (show_in_rest) as key/value | |
| site | Yes | Site id (see list_sites) | |
| slug | No | URL slug | |
| tags | No | Tag IDs (replaces the current set) | |
| title | No | Post title | |
| author | No | Author user ID | |
| format | No | Post format | |
| status | No | Post status | |
| sticky | No | Stick the post to the front page | |
| content | No | Content (HTML / block markup, stored raw) | |
| excerpt | No | Excerpt | |
| date_gmt | No | Publish date in GMT (ISO8601) | |
| password | No | Password to protect the content ('' removes protection); write-only, never returned | |
| template | No | Theme template file, e.g. 'page-full-width.php' ('' = default) | |
| categories | No | Category IDs (replaces the current set) | |
| ping_status | No | Whether pingbacks/trackbacks are open | |
| comment_status | No | Whether comments are open | |
| featured_media | No | Featured image media ID (0 removes it) |