Update a page or post
wp_update_contentChange a WordPress page or post’s title, content, excerpt, or ACF fields; read existing blocks first and send full content to avoid fragment overwrites.
Instructions
Changes the title, content, excerpt or ACF fields of a page or post. Read it first with wp_get_content (format "blocks") and send the full new content, not a fragment. WordPress keeps a revision, so changes can be undone. Published content can only be changed if the server allows it.
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_update_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Post ID | |
| acf | No | ||
| title | No | ||
| content | No | ||
| excerpt | No | ||
| post_type | No | Post type slug or REST base: "page", "post" or a custom post type. Default "page". | page |