update_comment
Update an existing WordPress comment's content or moderation status (approved, hold, spam, or trash). Use it to revise comment text or manage moderation via the WordPress REST API.
Instructions
Update an existing comment (content or moderation status)
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": "update_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Comment ID | |
| status | No | Updated comment status (use for moderation) | |
| content | No | Updated comment content |