Update WordPress Category
wp_update_categoryUpdate an existing WordPress category's name, slug, description, or parent. Provide the category ID and new field values to change them, then receive the updated category details.
Instructions
Update an existing category's name, slug, description, or parent.
Args:
id (number): Category ID. Required.
name, slug, description (string): Optional.
parent (number): New parent category ID.
response_format (enum): markdown | json. Default 'markdown'.
Returns: The updated WPTermItem.
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_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Category ID to update. | |
| name | No | New name. | |
| slug | No | New slug. | |
| parent | No | New parent ID. | |
| description | No | New description. | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |