wp_update_post
ACTION on the WordPress site. Changes only the given fields of an existing post (title, content, excerpt, status, date, slug, categories, tags, featured_media); e.g. status=publish publishes a draft. Returns before → after. In safe mode the first call returns a PREVIEW with confirm_id: show it and call again with confirm_id only after the user approves.
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_id": "<site_id>",
"post_id": "<post_id>"
},
"name": "wp_update_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Data e ora ISO 8601, es. 2026-11-10T09:00:00. | |
| slug | No | Slug URL dell'articolo, minuscolo con trattini, es. come-scegliere-il-prezzo. | |
| tags | No | Id tag WordPress (array di interi, da wp_list_terms). | |
| title | No | Titolo dell'articolo. | |
| status | No | Stato articolo WordPress: draft, pending, publish, future, private. | |
| content | No | Contenuto HTML dell'articolo. | |
| excerpt | No | Estratto dell'articolo, testo semplice. | |
| post_id | Yes | Id articolo WordPress (da wp_list_posts). | |
| site_id | Yes | Id sito WordPress (da wp_list_sites). | |
| categories | No | Id categorie WordPress (array di interi, da wp_list_terms). | |
| confirm_id | No | Token di conferma ritornato dall'anteprima. Ripassa lo STESSO payload + confirm_id per eseguire davvero la scrittura. | |
| featured_media | No | Id media dell'immagine in evidenza (intero). |