update_post
Modify an existing WordPress post or page by ID, including title, content, status, slug, categories, tags, featured image, and publication date.
Instructions
Update an existing WordPress post or page
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": {
"post_id": "<post_id>"
},
"name": "update_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Publication date (optional, ISO8601 in the site's time zone, e.g. '2026-11-19T10:00:00'). With status 'future' and a future date, the post is scheduled. get_post shows the current date | |
| slug | No | New URL slug (optional, e.g. an ASCII slug for a post with a Japanese title). WordPress does not update the slug when the title changes. Changing the slug of a published post changes its URL | |
| tags | No | Array of tag IDs (optional) | |
| title | No | New post title (optional) | |
| status | No | Post status (optional): 'publish', 'draft', 'pending', 'private', or 'future' (scheduled; needs 'date' unless the post is already scheduled) | |
| content | No | New post content (optional) | |
| post_id | Yes | Post or page ID to update | |
| post_type | No | Content type being updated. Defaults to 'post'. | post |
| categories | No | Array of category IDs (optional) | |
| featured_media_id | No | Featured image media ID (optional) |