mcp_update_cpt_post
Update a WordPress post of any type by changing only specified fields and merging meta key-values, preserving existing content and metadata.
Instructions
Update a post of any post type. Only the given fields change; meta keys are merged (update_post_meta per key).
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>",
"type": "<type>",
"id": "<id>"
},
"name": "mcp_update_cpt_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Post ID | |
| meta | No | Post meta key-value pairs to set | |
| site | Yes | Site id (see list_sites) | |
| type | Yes | Post type name (e.g. post, page, product, testimonial) | |
| title | No | Post title | |
| status | No | Post status | |
| content | No | Post content. Note: the endpoint sanitizes it as plain text, so HTML tags are stripped |