wp_update_content
Update existing WordPress posts, pages, or products by sending only the fields that need to change. Adjust title, content, slug, status, categories, tags, meta, images, and WooCommerce details.
Instructions
Update an existing WordPress post, page, or product. Only provide the fields you want to 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": {
"type": "<type>",
"id": "<id>"
},
"name": "wp_update_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Post ID to update | |
| sku | No | WooCommerce: SKU | |
| meta | No | Meta fields to update | |
| slug | No | New URL slug | |
| tags | No | Tag names | |
| type | Yes | Post type | |
| title | No | New title | |
| status | No | New status | |
| content | No | New HTML content | |
| excerpt | No | New excerpt | |
| categories | No | Category IDs | |
| sale_price | No | WooCommerce: sale price | |
| regular_price | No | WooCommerce: regular price | |
| stock_quantity | No | WooCommerce: stock quantity | |
| featured_image_id | No | Media ID for featured image |